Struct evzht9h3nznqzwl::ws::util::header::DataFrameHeader
[−]
[src]
pub struct DataFrameHeader { pub flags: DataFrameFlags, pub opcode: u8, pub mask: Option<[u8; 4]>, pub len: u64, }
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
impl Debug for DataFrameHeader
[src]
impl Clone for DataFrameHeader
[src]
fn clone(&self) -> DataFrameHeader
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for DataFrameHeader
[src]
impl PartialEq for DataFrameHeader
[src]
fn eq(&self, __arg_0: &DataFrameHeader) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DataFrameHeader) -> bool
[src]
This method tests for !=
.