pub struct FrameUpdate {
pub x: u16,
pub y: u16,
pub width: u16,
pub height: u16,
pub rgba_data: Vec<u8>,
}Expand description
A decoded framebuffer update — a dirty rectangle with RGBA pixel data.
Emitted by the DesktopProtocol::start_frame_loop trait method. The RDP
and VNC clients are currently stubs; once they produce real frames,
ConnectionManager::start_desktop_stream will plumb these to the
WebSocket server. Until then the struct and its field are “dead” only
in the sense that no production code exercises them yet.
Fields§
§x: u16§y: u16§width: u16§height: u16§rgba_data: Vec<u8>Raw RGBA pixel data (width × height × 4 bytes)
Trait Implementations§
Source§impl Clone for FrameUpdate
impl Clone for FrameUpdate
Source§fn clone(&self) -> FrameUpdate
fn clone(&self) -> FrameUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FrameUpdate
impl RefUnwindSafe for FrameUpdate
impl Send for FrameUpdate
impl Sync for FrameUpdate
impl Unpin for FrameUpdate
impl UnsafeUnpin for FrameUpdate
impl UnwindSafe for FrameUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more