IVncFramebufferSource
trait · ferroui-headless-vnc · v0.5.0
trait IVncFramebufferSource: Send + Sync
Provides a framebuffer.
A source is called by the threads of the server session, hence Send
and Sync.
Members
supports_resizing
fn supports_resizing(self: &Self) -> bool
Gets a value indicating whether the source supports resizing.
capture
fn capture(self: &Self) -> Option<Arc<VncFramebuffer>>
Called when a framebuffer update is needed. You can use this opportunity to switch framebuffers if desired.
Returns a framebuffer (None stands for the null of the original:
the session keeps the framebuffer it has).
set_desktop_size
fn set_desktop_size(self: &Self, width: i32, height: i32) -> ExtendedDesktopSizeStatus
Handles a client request to resize the framebuffer to width by
height.
Returns a value indicating how the source handled the update request.
Trait implementations
Availability
Extracted for x86_64-unknown-linux-gnu, aarch64-apple-darwin. Cargo features are listed in the crate index.