pub struct WsFrame {
pub fin: bool,
pub opcode: WsOpcode,
pub masked: bool,
pub masking_key: Option<[u8; 4]>,
pub payload: Vec<u8>,
}Expand description
A decoded WebSocket frame.
Fields§
§fin: bool§opcode: WsOpcode§masked: bool§masking_key: Option<[u8; 4]>§payload: Vec<u8>Trait Implementations§
impl StructuralPartialEq for WsFrame
Auto Trait Implementations§
impl Freeze for WsFrame
impl RefUnwindSafe for WsFrame
impl Send for WsFrame
impl Sync for WsFrame
impl Unpin for WsFrame
impl UnsafeUnpin for WsFrame
impl UnwindSafe for WsFrame
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