pub struct N0DisableRelay;Expand description
Configures the endpoint to use the n0 defaults, but with relay mode disabled.
Currently this consists of
- setting
RelayMode::Disabled - the DNS Address Lookup service, that publishes IP addresses rather than relay urls.
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§
Source§impl Clone for N0DisableRelay
impl Clone for N0DisableRelay
Source§fn clone(&self) -> N0DisableRelay
fn clone(&self) -> N0DisableRelay
Returns a duplicate 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 N0DisableRelay
impl Debug for N0DisableRelay
Source§impl Default for N0DisableRelay
impl Default for N0DisableRelay
Source§fn default() -> N0DisableRelay
fn default() -> N0DisableRelay
Returns the “default value” for a type. Read more
Source§impl Preset for N0DisableRelay
impl Preset for N0DisableRelay
impl Copy for N0DisableRelay
Auto Trait Implementations§
impl Freeze for N0DisableRelay
impl RefUnwindSafe for N0DisableRelay
impl Send for N0DisableRelay
impl Sync for N0DisableRelay
impl Unpin for N0DisableRelay
impl UnsafeUnpin for N0DisableRelay
impl UnwindSafe for N0DisableRelay
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