pub enum WsDirection {
Sent,
Received,
}Expand description
Direction of a WebSocket message.
Variants§
Trait Implementations§
Source§impl Clone for WsDirection
impl Clone for WsDirection
Source§fn clone(&self) -> WsDirection
fn clone(&self) -> WsDirection
Returns a duplicate of the value. Read more
1.0.0 · 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 WsDirection
impl Debug for WsDirection
Source§impl<'de> Deserialize<'de> for WsDirection
impl<'de> Deserialize<'de> for WsDirection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WsDirection
impl PartialEq for WsDirection
Source§impl Serialize for WsDirection
impl Serialize for WsDirection
impl Eq for WsDirection
impl StructuralPartialEq for WsDirection
Auto Trait Implementations§
impl Freeze for WsDirection
impl RefUnwindSafe for WsDirection
impl Send for WsDirection
impl Sync for WsDirection
impl Unpin for WsDirection
impl UnsafeUnpin for WsDirection
impl UnwindSafe for WsDirection
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