pub enum WireMessage {
Text(String),
Binary(Vec<u8>),
}Expand description
A transport-level WebSocket message.
Variants§
Trait Implementations§
Source§impl Clone for WireMessage
impl Clone for WireMessage
Source§fn clone(&self) -> WireMessage
fn clone(&self) -> WireMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WireMessage
impl Debug for WireMessage
Source§impl PartialEq for WireMessage
impl PartialEq for WireMessage
Source§fn eq(&self, other: &WireMessage) -> bool
fn eq(&self, other: &WireMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WireMessage
impl StructuralPartialEq for WireMessage
Auto Trait Implementations§
impl Freeze for WireMessage
impl RefUnwindSafe for WireMessage
impl Send for WireMessage
impl Sync for WireMessage
impl Unpin for WireMessage
impl UnsafeUnpin for WireMessage
impl UnwindSafe for WireMessage
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