Struct websocket::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

The bit flags for the first byte of the header.

opcode

The opcode of the header - must be <= 16.

mask

The masking key, if any.

len

The length of the payload.

Trait Implementations

Derived Implementations

impl PartialEq for DataFrameHeader

fn eq(&self, __arg_0: &DataFrameHeader) -> bool

fn ne(&self, __arg_0: &DataFrameHeader) -> bool

impl Copy for DataFrameHeader

impl Clone for DataFrameHeader

fn clone(&self) -> DataFrameHeader

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for DataFrameHeader

fn fmt(&self, __arg_0: &mut Formatter) -> Result