pub struct CompactNodeInfo6 {
pub id: Id20,
pub addr: SocketAddr,
}Expand description
A DHT node: 20-byte ID + IPv6 socket address.
Encoded as 38 bytes: 20-byte node ID, 16-byte IPv6, 2-byte port (big-endian).
Fields§
§id: Id2020-byte node ID.
addr: SocketAddrIPv6 socket address (IP + port).
Implementations§
Trait Implementations§
Source§impl Clone for CompactNodeInfo6
impl Clone for CompactNodeInfo6
Source§fn clone(&self) -> CompactNodeInfo6
fn clone(&self) -> CompactNodeInfo6
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 moreimpl Copy for CompactNodeInfo6
Source§impl Debug for CompactNodeInfo6
impl Debug for CompactNodeInfo6
impl Eq for CompactNodeInfo6
Source§impl PartialEq for CompactNodeInfo6
impl PartialEq for CompactNodeInfo6
Source§fn eq(&self, other: &CompactNodeInfo6) -> bool
fn eq(&self, other: &CompactNodeInfo6) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompactNodeInfo6
Auto Trait Implementations§
impl Freeze for CompactNodeInfo6
impl RefUnwindSafe for CompactNodeInfo6
impl Send for CompactNodeInfo6
impl Sync for CompactNodeInfo6
impl Unpin for CompactNodeInfo6
impl UnsafeUnpin for CompactNodeInfo6
impl UnwindSafe for CompactNodeInfo6
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