pub struct ResolvedDiscovery {
pub pkarr_url: Option<String>,
pub dns_origin: Option<String>,
pub peers: Vec<ResolvedDiscoveryPeer>,
}Expand description
Resolved discovery providers (#818). Strings are already shape-validated at
resolution (pkarr_url a parseable URL, dns_origin non-empty, each peer
node_id a valid iroh NodeId, each addr a SocketAddr); the node wiring
layer parses them into iroh types — the discovery-provider seam, per
adr/appendix-poc-production-seams.md.
Fields§
§pkarr_url: Option<String>pkarr relay URL to publish this node’s address record to.
dns_origin: Option<String>DNS origin domain to resolve peers from.
peers: Vec<ResolvedDiscoveryPeer>Static peer address book, sorted by node_id for a deterministic build.
Implementations§
Trait Implementations§
Source§impl Clone for ResolvedDiscovery
impl Clone for ResolvedDiscovery
Source§impl Debug for ResolvedDiscovery
impl Debug for ResolvedDiscovery
Auto Trait Implementations§
impl Freeze for ResolvedDiscovery
impl RefUnwindSafe for ResolvedDiscovery
impl Send for ResolvedDiscovery
impl Sync for ResolvedDiscovery
impl Unpin for ResolvedDiscovery
impl UnsafeUnpin for ResolvedDiscovery
impl UnwindSafe for ResolvedDiscovery
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more