pub struct DhtNodeEntry {
pub host: String,
pub port: i64,
}Expand description
A DHT bootstrap node entry for session persistence.
Fields§
§host: StringHostname or IP address of the DHT node.
port: i64Port number of the DHT node.
Trait Implementations§
Source§impl Clone for DhtNodeEntry
impl Clone for DhtNodeEntry
Source§fn clone(&self) -> DhtNodeEntry
fn clone(&self) -> DhtNodeEntry
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 DhtNodeEntry
impl Debug for DhtNodeEntry
Source§impl<'de> Deserialize<'de> for DhtNodeEntry
impl<'de> Deserialize<'de> for DhtNodeEntry
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 DhtNodeEntry
impl PartialEq for DhtNodeEntry
Source§fn eq(&self, other: &DhtNodeEntry) -> bool
fn eq(&self, other: &DhtNodeEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DhtNodeEntry
impl Serialize for DhtNodeEntry
impl Eq for DhtNodeEntry
impl StructuralPartialEq for DhtNodeEntry
Auto Trait Implementations§
impl Freeze for DhtNodeEntry
impl RefUnwindSafe for DhtNodeEntry
impl Send for DhtNodeEntry
impl Sync for DhtNodeEntry
impl Unpin for DhtNodeEntry
impl UnsafeUnpin for DhtNodeEntry
impl UnwindSafe for DhtNodeEntry
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.