pub enum ProtocolVariant {
Relay,
PeerToPeer,
Mesh,
Unknown(String),
}Expand description
Protocol variants supported by the Zoe wire protocol
Variants§
Relay
Relay protocol for server-mediated communication
PeerToPeer
Peer-to-peer protocol for direct client communication
Mesh
Mesh protocol for distributed network communication
Unknown(String)
Not yet known variant
Implementations§
Source§impl ProtocolVariant
impl ProtocolVariant
Sourcepub fn all_variants() -> Vec<Self>
pub fn all_variants() -> Vec<Self>
Get all supported protocol variants
Trait Implementations§
Source§impl Clone for ProtocolVariant
impl Clone for ProtocolVariant
Source§fn clone(&self) -> ProtocolVariant
fn clone(&self) -> ProtocolVariant
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 ProtocolVariant
impl Debug for ProtocolVariant
Source§impl<'de> Deserialize<'de> for ProtocolVariant
impl<'de> Deserialize<'de> for ProtocolVariant
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 Display for ProtocolVariant
impl Display for ProtocolVariant
Source§impl From<ProtocolVariant> for String
impl From<ProtocolVariant> for String
Source§fn from(val: ProtocolVariant) -> Self
fn from(val: ProtocolVariant) -> Self
Converts to this type from the input type.
Source§impl From<String> for ProtocolVariant
impl From<String> for ProtocolVariant
Source§impl Hash for ProtocolVariant
impl Hash for ProtocolVariant
Source§impl Ord for ProtocolVariant
impl Ord for ProtocolVariant
Source§fn cmp(&self, other: &ProtocolVariant) -> Ordering
fn cmp(&self, other: &ProtocolVariant) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProtocolVariant
impl PartialEq for ProtocolVariant
Source§impl PartialOrd for ProtocolVariant
impl PartialOrd for ProtocolVariant
Source§impl Serialize for ProtocolVariant
impl Serialize for ProtocolVariant
impl Eq for ProtocolVariant
impl StructuralPartialEq for ProtocolVariant
Auto Trait Implementations§
impl Freeze for ProtocolVariant
impl RefUnwindSafe for ProtocolVariant
impl Send for ProtocolVariant
impl Sync for ProtocolVariant
impl Unpin for ProtocolVariant
impl UnwindSafe for ProtocolVariant
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more