pub struct Frame {
pub profile: u16,
pub tab: u16,
pub seq: u32,
pub width: u16,
pub height: u16,
pub format: Format,
pub key: bool,
pub page_width: u16,
pub page_height: u16,
pub bytes: Vec<u8>,
}Expand description
One encoded frame for one tab of one profile.
Fields§
§profile: u16The served profile’s id, as the server assigned it.
tab: u16The profile’s tab this frame belongs to.
seq: u32Monotonic per tab; a newer frame supersedes an older one.
width: u16§height: u16§format: Format§key: boolA full-quality frame: the first of a surface, and every resize.
page_width: u16The page’s own viewport, the space a gesture’s point is sent in. Not the frame’s pixels divided by anything: the raster between them is the host’s, and the encoded scale may change it too.
page_height: u16§bytes: Vec<u8>Implementations§
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.