Expand description
A message produced by a websocket connection.
Variants
Text(String)
Text data. If the client is in Javascript, this happens when the client called send()
with a string.
Binary(Vec<u8>)
Binary data. If the client is in Javascript, this happens when the client called send()
with a blob or an arraybuffer.
Trait Implementations
impl Eq for Message
impl StructuralEq for Message
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