pub struct DataFrameHeader {
pub flags: DataFrameFlags,
pub opcode: u8,
pub mask: Option<[u8; 4]>,
pub len: u64,
}
Expand description
Represents a data frame header.
Fields§
§flags: DataFrameFlags
The bit flags for the first byte of the header.
opcode: u8
The opcode of the header - must be <= 16.
mask: Option<[u8; 4]>
The masking key, if any.
len: u64
The length of the payload.
Trait Implementations§
Source§impl Clone for DataFrameHeader
impl Clone for DataFrameHeader
Source§fn clone(&self) -> DataFrameHeader
fn clone(&self) -> DataFrameHeader
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DataFrameHeader
impl Debug for DataFrameHeader
Source§impl PartialEq for DataFrameHeader
impl PartialEq for DataFrameHeader
impl Copy for DataFrameHeader
impl StructuralPartialEq for DataFrameHeader
Auto Trait Implementations§
impl Freeze for DataFrameHeader
impl RefUnwindSafe for DataFrameHeader
impl Send for DataFrameHeader
impl Sync for DataFrameHeader
impl Unpin for DataFrameHeader
impl UnwindSafe for DataFrameHeader
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