pub struct NodeTuple {
pub id: [u8; 20],
pub addr: SocketAddr,
}Expand description
Compact DHT node tuple used by crawl and routing code.
Fields§
§id: [u8; 20]Twenty-byte DHT node ID.
addr: SocketAddrPublic UDP endpoint.
Trait Implementations§
impl Copy for NodeTuple
impl Eq for NodeTuple
impl StructuralPartialEq for NodeTuple
Auto Trait Implementations§
impl Freeze for NodeTuple
impl RefUnwindSafe for NodeTuple
impl Send for NodeTuple
impl Sync for NodeTuple
impl Unpin for NodeTuple
impl UnsafeUnpin for NodeTuple
impl UnwindSafe for NodeTuple
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