Struct iroh_dns_server::config::MainlineConfig
source · pub struct MainlineConfig {
pub enabled: bool,
pub bootstrap: Option<Vec<String>>,
}
Expand description
The config for the metrics server.
Fields§
§enabled: bool
Set to true to enable the mainline lookup.
bootstrap: Option<Vec<String>>
Set custom bootstrap nodes.
Addresses can either be domain:port
or ipv4:port
.
If empty this will use the default bittorrent mainline bootstrap nodes as defined by pkarr.
Trait Implementations§
source§impl Debug for MainlineConfig
impl Debug for MainlineConfig
source§impl Default for MainlineConfig
impl Default for MainlineConfig
source§impl<'de> Deserialize<'de> for MainlineConfig
impl<'de> Deserialize<'de> for MainlineConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MainlineConfig
impl RefUnwindSafe for MainlineConfig
impl Send for MainlineConfig
impl Sync for MainlineConfig
impl Unpin for MainlineConfig
impl UnwindSafe for MainlineConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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