pub enum WsFrame {
Text(String),
Binary(Bytes),
Ping(Bytes),
Pong(Bytes),
Close,
}Expand description
A WebSocket frame, decoupled from the underlying tungstenite types.
Variants§
Text(String)
A UTF-8 text frame.
Binary(Bytes)
A binary frame.
Ping(Bytes)
A ping control frame with its payload.
Pong(Bytes)
A pong control frame with its payload.
Close
A close control frame (close reason discarded).
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.