pub struct BrowserFrame {
pub profile: u16,
pub tab: u16,
pub seq: u32,
pub encoded: Vec<u8>,
}Expand description
One encoded browser frame as the socket relays it.
The bytes stay encoded end to end. The host is the only encoder; the
server relays encoded untouched as one binary frame, and every client
decodes the same host frame the server read. encoded is the host’s own
frame wire: the profile id, the tab, sequence, view size, format, key
flag, the page’s own viewport and the WebP payload.
Fields§
§profile: u16The service’s profile id: which surface the frame belongs to.
tab: u16The profile’s tab this frame paints.
seq: u32Monotonic per tab; a newer frame supersedes an older one.
encoded: Vec<u8>Trait Implementations§
Source§impl Clone for BrowserFrame
impl Clone for BrowserFrame
Source§impl Debug for BrowserFrame
impl Debug for BrowserFrame
impl Eq for BrowserFrame
Source§impl PartialEq for BrowserFrame
impl PartialEq for BrowserFrame
impl StructuralPartialEq for BrowserFrame
Auto Trait Implementations§
impl Freeze for BrowserFrame
impl RefUnwindSafe for BrowserFrame
impl Send for BrowserFrame
impl Sync for BrowserFrame
impl Unpin for BrowserFrame
impl UnsafeUnpin for BrowserFrame
impl UnwindSafe for BrowserFrame
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.