pub enum NodeMode {
Node,
Client,
}Expand description
Operating mode of a P2P node.
Determines the default user agent and DHT participation behavior.
Node peers participate in the DHT routing table; Client peers
are treated as ephemeral and excluded from routing.
Variants§
Node
Full DHT-participant node that maintains routing state and routes messages.
Client
Ephemeral client that connects to perform operations without joining the DHT.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeMode
impl<'de> Deserialize<'de> for NodeMode
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
impl Copy for NodeMode
impl Eq for NodeMode
impl StructuralPartialEq for NodeMode
Auto Trait Implementations§
impl Freeze for NodeMode
impl RefUnwindSafe for NodeMode
impl Send for NodeMode
impl Sync for NodeMode
impl Unpin for NodeMode
impl UnsafeUnpin for NodeMode
impl UnwindSafe for NodeMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.