pub enum MessageDirection {
ClientToServer,
ServerToClient,
Both,
}Expand description
Indicates in which direction a message is sent in the protocol.
Variants§
Trait Implementations§
Source§impl Clone for MessageDirection
impl Clone for MessageDirection
Source§fn clone(&self) -> MessageDirection
fn clone(&self) -> MessageDirection
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 MessageDirection
impl Debug for MessageDirection
Source§impl<'de> Deserialize<'de> for MessageDirection
impl<'de> Deserialize<'de> for MessageDirection
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 Hash for MessageDirection
impl Hash for MessageDirection
Source§impl PartialEq for MessageDirection
impl PartialEq for MessageDirection
Source§fn eq(&self, other: &MessageDirection) -> bool
fn eq(&self, other: &MessageDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessageDirection
impl Serialize for MessageDirection
impl Copy for MessageDirection
impl Eq for MessageDirection
impl StructuralPartialEq for MessageDirection
Auto Trait Implementations§
impl Freeze for MessageDirection
impl RefUnwindSafe for MessageDirection
impl Send for MessageDirection
impl Sync for MessageDirection
impl Unpin for MessageDirection
impl UnsafeUnpin for MessageDirection
impl UnwindSafe for MessageDirection
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