pub enum WsFrame {
Text(String),
Binary(Bytes),
Ping(Bytes),
Pong(Bytes),
Close(Option<WsClose>),
}Expand description
A complete WebSocket data message or control frame. The transport adapter handles wire fragmentation, masking, and protocol validation.
Variants§
Trait Implementations§
impl Eq for WsFrame
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