pub struct WsFrameHeader {
pub fin: bool,
pub rsv1: bool,
pub rsv2: bool,
pub rsv3: bool,
pub opcode: u8,
pub mask: bool,
pub masking_key: [u8; 4],
pub payload_len: usize,
/* private fields */
}
Expand description
Websocket frame header
Fields§
§fin: bool
§rsv1: bool
§rsv2: bool
§rsv3: bool
§opcode: u8
§mask: bool
§masking_key: [u8; 4]
§payload_len: usize
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 moreAuto 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