pub struct DHTNode {
pub peer_id: PeerId,
pub addresses: Vec<MultiAddr>,
pub distance: Option<Vec<u8>>,
pub reliability: f64,
}Expand description
DHT node representation for network operations.
The addresses field stores one or more typed MultiAddr values.
Peers may be multi-homed or reachable via NAT traversal at several
endpoints.
Fields§
§peer_id: PeerId§addresses: Vec<MultiAddr>§distance: Option<Vec<u8>>§reliability: f64Trait Implementations§
Source§impl<'de> Deserialize<'de> for DHTNode
impl<'de> Deserialize<'de> for DHTNode
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
Auto Trait Implementations§
impl Freeze for DHTNode
impl RefUnwindSafe for DHTNode
impl Send for DHTNode
impl Sync for DHTNode
impl Unpin for DHTNode
impl UnsafeUnpin for DHTNode
impl UnwindSafe for DHTNode
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