pub enum WsFrame<'a> {
Text(&'a str),
Binary(&'a [u8]),
Close(u16, &'a str),
Ping(&'a [u8]),
Pong(&'a [u8]),
Unknown,
}
Expand description
Websocket frame (packet) Stores reference to inner framer buffer
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WsFrame<'a>
impl<'a> RefUnwindSafe for WsFrame<'a>
impl<'a> Send for WsFrame<'a>
impl<'a> Sync for WsFrame<'a>
impl<'a> Unpin for WsFrame<'a>
impl<'a> UnwindSafe for WsFrame<'a>
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