Enum libp2p::dns::DnsErr [−][src]
pub enum DnsErr<TErr> { Underlying(TErr), ResolveFail(String), ResolveError { domain_name: String, error: Error, }, MultiaddrNotSupported, }
Expand description
Error that can be generated by the DNS layer.
Variants
Error in the underlying transport layer.
ResolveFail(String)
Failed to find any IP address for this DNS address.
Error while resolving a DNS address.
Found an IP address, but the underlying transport doesn’t support the multiaddr.
Trait Implementations
Auto Trait Implementations
impl<TErr> !RefUnwindSafe for DnsErr<TErr>
impl<TErr> !UnwindSafe for DnsErr<TErr>
Blanket Implementations
pub fn as_fail(&self) -> &(dyn Fail + 'static)
pub fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V