Struct websocket_base::ws::util::header::DataFrameHeader
source · [−]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
sourceimpl Clone for DataFrameHeader
impl Clone for DataFrameHeader
sourcefn clone(&self) -> DataFrameHeader
fn clone(&self) -> DataFrameHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DataFrameHeader
impl Debug for DataFrameHeader
sourceimpl PartialEq<DataFrameHeader> for DataFrameHeader
impl PartialEq<DataFrameHeader> for DataFrameHeader
sourcefn eq(&self, other: &DataFrameHeader) -> bool
fn eq(&self, other: &DataFrameHeader) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DataFrameHeader) -> bool
fn ne(&self, other: &DataFrameHeader) -> bool
This method tests for !=
.
impl Copy for DataFrameHeader
impl StructuralPartialEq for DataFrameHeader
Auto Trait Implementations
impl RefUnwindSafe for DataFrameHeader
impl Send for DataFrameHeader
impl Sync for DataFrameHeader
impl Unpin for DataFrameHeader
impl UnwindSafe for DataFrameHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more