pub struct FrameHeader {
pub frame: u32,
pub width: u16,
pub height: u16,
pub format: FrameFormat,
pub len: u32,
}Expand description
16-byte little-endian header of a binary WS frame:
| bytes | field |
|---|---|
| 0..4 | frame |
| 4..6 | width |
| 6..8 | height |
| 8 | format |
| 9..12 | reserved, zero |
| 12..16 | len of the body that follows |
Fields§
§frame: u32Global frame index.
width: u16Image width in pixels.
height: u16Image height in pixels.
format: FrameFormatEncoding of the body.
len: u32Body length in bytes.
Implementations§
Trait Implementations§
Source§impl Clone for FrameHeader
impl Clone for FrameHeader
impl Copy for FrameHeader
Source§impl Debug for FrameHeader
impl Debug for FrameHeader
impl Eq for FrameHeader
Source§impl PartialEq for FrameHeader
impl PartialEq for FrameHeader
impl StructuralPartialEq for FrameHeader
Auto Trait Implementations§
impl Freeze for FrameHeader
impl RefUnwindSafe for FrameHeader
impl Send for FrameHeader
impl Sync for FrameHeader
impl Unpin for FrameHeader
impl UnsafeUnpin for FrameHeader
impl UnwindSafe for FrameHeader
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