pub struct DiscoveryItem {
pub node_id: NodeId,
pub provenance: &'static str,
pub last_updated: Option<u64>,
pub addr_info: AddrInfo,
}
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
Expand description
The results returned from Discovery::resolve
.
Fields§
§node_id: NodeId
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
The NodeId
whose address we have discovered
provenance: &'static str
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
A static string to identify the discovery source.
Should be uniform per discovery service.
last_updated: Option<u64>
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
Optional timestamp when this node address info was last updated.
Must be microseconds since the unix epoch.
addr_info: AddrInfo
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
The address info for the node being resolved.
Trait Implementations§
Source§impl Clone for DiscoveryItem
impl Clone for DiscoveryItem
Source§fn clone(&self) -> DiscoveryItem
fn clone(&self) -> DiscoveryItem
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 moreAuto Trait Implementations§
impl Freeze for DiscoveryItem
impl RefUnwindSafe for DiscoveryItem
impl Send for DiscoveryItem
impl Sync for DiscoveryItem
impl Unpin for DiscoveryItem
impl UnwindSafe for DiscoveryItem
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