pub struct ResolvedNetwork {
pub bind_port: u16,
pub relay_urls: Vec<String>,
pub discovery: ResolvedDiscovery,
}Expand description
Resolved network fields.
Fields§
§bind_port: u16QUIC bind port.
relay_urls: Vec<String>iroh relay URLs for NAT traversal. Empty => use the n0 default relays;
non-empty => swap in these self-hosted relays (RelayMode::Custom).
Relay connectivity is logged after bring-up but never fatal: when no
relay connects the node warns and proceeds (iroh retries in the
background).
discovery: ResolvedDiscoveryOperator-configurable address discovery (#818 scope 1). Empty
(ResolvedDiscovery::is_empty) => the node keeps the n0-hosted
pkarr/DNS default (presets::N0); otherwise the node builds on
presets::Minimal and composes only the providers configured here.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResolvedNetwork
impl RefUnwindSafe for ResolvedNetwork
impl Send for ResolvedNetwork
impl Sync for ResolvedNetwork
impl Unpin for ResolvedNetwork
impl UnsafeUnpin for ResolvedNetwork
impl UnwindSafe for ResolvedNetwork
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
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