Struct libp2p::dns::ResolveError [−]
pub struct ResolveError { /* fields omitted */ }
Expand description
The error type for errors that get returned in the crate
Implementations
impl ResolveError
impl ResolveError
pub fn kind(&self) -> &ResolveErrorKind
pub fn kind(&self) -> &ResolveErrorKind
Get the kind of the error
pub fn from_response(
response: DnsResponse,
trust_nx: bool
) -> Result<DnsResponse, ResolveError>
pub fn from_response(
response: DnsResponse,
trust_nx: bool
) -> Result<DnsResponse, ResolveError>
A conversion to determine if the response is an error
Trait Implementations
impl Clone for ResolveError
impl Clone for ResolveError
pub fn clone(&self) -> ResolveError
pub fn clone(&self) -> ResolveError
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for ResolveError
impl Debug for ResolveError
impl Display for ResolveError
impl Display for ResolveError
impl Error for ResolveError
impl Error for ResolveError
impl From<&'static str> for ResolveError
impl From<&'static str> for ResolveError
pub fn from(msg: &'static str) -> ResolveError
pub fn from(msg: &'static str) -> ResolveError
Performs the conversion.
impl From<Error> for ResolveError
impl From<Error> for ResolveError
pub fn from(e: Error) -> ResolveError
pub fn from(e: Error) -> ResolveError
Performs the conversion.
impl<T> From<PoisonError<T>> for ResolveError
impl<T> From<PoisonError<T>> for ResolveError
pub fn from(e: PoisonError<T>) -> ResolveError
pub fn from(e: PoisonError<T>) -> ResolveError
Performs the conversion.
impl From<ProtoError> for ResolveError
impl From<ProtoError> for ResolveError
pub fn from(e: ProtoError) -> ResolveError
pub fn from(e: ProtoError) -> ResolveError
Performs the conversion.
impl From<ResolveErrorKind> for ResolveError
impl From<ResolveErrorKind> for ResolveError
pub fn from(kind: ResolveErrorKind) -> ResolveError
pub fn from(kind: ResolveErrorKind) -> ResolveError
Performs the conversion.
impl From<String> for ResolveError
impl From<String> for ResolveError
pub fn from(msg: String) -> ResolveError
pub fn from(msg: String) -> ResolveError
Performs the conversion.
impl RetryableError for ResolveError
impl RetryableError for ResolveError
pub fn should_retry(&self) -> bool
pub fn should_retry(&self) -> bool
Whether the query should be retried after this error
Auto Trait Implementations
impl !RefUnwindSafe for ResolveError
impl Send for ResolveError
impl Sync for ResolveError
impl Unpin for ResolveError
impl !UnwindSafe for ResolveError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V