pub struct DirectAddr {
pub addr: SocketAddr,
pub typ: DirectAddrType,
}
Expand description
A direct address on which an iroh-node might be contactable.
Direct addresses are UDP socket addresses on which an iroh-net node could potentially be
contacted. These can come from various sources depending on the network topology of the
iroh-net node, see DirectAddrType
for the several kinds of sources.
Fields§
§addr: SocketAddr
The address.
typ: DirectAddrType
The origin of this direct address.
Trait Implementations§
Source§impl Clone for DirectAddr
impl Clone for DirectAddr
Source§fn clone(&self) -> DirectAddr
fn clone(&self) -> DirectAddr
Returns a copy of the value. Read more
1.0.0 · 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 DirectAddr
impl Debug for DirectAddr
Source§impl Hash for DirectAddr
impl Hash for DirectAddr
Source§impl Ord for DirectAddr
impl Ord for DirectAddr
Source§fn cmp(&self, other: &DirectAddr) -> Ordering
fn cmp(&self, other: &DirectAddr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DirectAddr
impl PartialEq for DirectAddr
Source§impl PartialOrd for DirectAddr
impl PartialOrd for DirectAddr
impl Eq for DirectAddr
impl StructuralPartialEq for DirectAddr
Auto Trait Implementations§
impl Freeze for DirectAddr
impl RefUnwindSafe for DirectAddr
impl Send for DirectAddr
impl Sync for DirectAddr
impl Unpin for DirectAddr
impl UnwindSafe for DirectAddr
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.