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: 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.