Enum ipfs_embed::DnsConfig
source · pub enum DnsConfig {
Custom {
config: ResolverConfig,
opts: ResolverOpts,
},
SystemWithFallback {
config: ResolverConfig,
opts: ResolverOpts,
},
}Expand description
DNS configuration.
Variants
Custom
Fields
config: ResolverConfigConfigures the nameservers to use.
opts: ResolverOptsConfiguration for the resolver.
SystemWithFallback
Fields
config: ResolverConfigConfigures the nameservers to use.
opts: ResolverOptsConfiguration for the resolver.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DnsConfig
impl Send for DnsConfig
impl Sync for DnsConfig
impl Unpin for DnsConfig
impl UnwindSafe for DnsConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more