pub struct DhtNode {
pub peer_id: String,
pub addresses: Vec<PeerAddress>,
pub expires_at: Option<u64>,
}Expand description
A DHT node’s routing entry: a peer_id (32-byte, hex or base64 per the
transport) with its addresses and record TTL.
Fields§
§peer_id: StringThe node’s peer_id (64-hex).
addresses: Vec<PeerAddress>The node’s candidate addresses (IPv6-first).
expires_at: Option<u64>The record’s absolute expiry (unix seconds), when present.
Trait 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
impl Eq for DhtNode
impl StructuralPartialEq for DhtNode
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