pub enum Message {
Text(String),
Binary(Binary),
Ping(String),
Pong(String),
Close(Option<CloseReason>),
}
Expand description
WebSocket
Message
Variants
Text(String)
Text message
Binary(Binary)
Binary message
Ping(String)
Ping message
Pong(String)
Pong message
Close(Option<CloseReason>)
Close message with optional reason
Trait Implementations
impl StructuralPartialEq for Message
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more