pub struct N0;Expand description
Configures the endpoint to use the n0 defaults
Currently this consists of
- the DNS Address Lookup service.
- the default relay servers provided by Number 0.
The default address lookup service publishes to and resolves from the
n0.computer dns server iroh.link.
This is equivalent to adding both a crate::address_lookup::PkarrPublisher
and a crate::address_lookup::DnsAddressLookup, both configured to use the
n0.computer dns server.
This will by default use N0_DNS_PKARR_RELAY_PROD.
When in tests, or when the test-utils feature is enabled, this will use the
N0_DNS_PKARR_RELAY_STAGING.
Trait Implementations§
impl Copy for N0
Auto Trait Implementations§
impl Freeze for N0
impl RefUnwindSafe for N0
impl Send for N0
impl Sync for N0
impl Unpin for N0
impl UnsafeUnpin for N0
impl UnwindSafe for N0
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