pub struct WsFrameHeader {
pub flags: WsFrameFlags,
pub opcode: u8,
pub mask: Option<[u8; 4]>,
pub len: u64,
}
Expand description
Represents a data frame header.
Fields§
§flags: WsFrameFlags
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 WsFrameHeader
impl Clone for WsFrameHeader
Source§fn clone(&self) -> WsFrameHeader
fn clone(&self) -> WsFrameHeader
Returns a duplicate 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 WsFrameHeader
impl Debug for WsFrameHeader
Source§impl PartialEq for WsFrameHeader
impl PartialEq for WsFrameHeader
impl Copy for WsFrameHeader
impl StructuralPartialEq for WsFrameHeader
Auto Trait Implementations§
impl Freeze for WsFrameHeader
impl RefUnwindSafe for WsFrameHeader
impl Send for WsFrameHeader
impl Sync for WsFrameHeader
impl Unpin for WsFrameHeader
impl UnwindSafe for WsFrameHeader
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