Struct trust_dns_resolver::error::ResolveError [−][src]
pub struct ResolveError { /* fields omitted */ }
The error type for errors that get returned in the crate
Methods
impl ResolveError
[src]
impl ResolveError
pub fn kind(&self) -> &ResolveErrorKind
[src]
pub fn kind(&self) -> &ResolveErrorKind
Get the kind of the error
Trait Implementations
impl Debug for ResolveError
[src]
impl Debug for ResolveError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ResolveError
[src]
impl Clone for ResolveError
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Fail for ResolveError
[src]
impl Fail for ResolveError
fn cause(&self) -> Option<&Fail>
[src]
fn cause(&self) -> Option<&Fail>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
fn compat(self) -> Compat<Self>
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
ⓘImportant traits for Causes<'f>fn causes(&self) -> Causes
[src]
fn causes(&self) -> Causes
Returns a iterator over the causes of this Fail
with itself as the first item and the root_cause
as the final item. Read more
fn root_cause(&self) -> &(Fail + 'static)
[src]
fn root_cause(&self) -> &(Fail + 'static)
Returns the "root cause" of this Fail
- the last value in the cause chain which does not return an underlying cause
. Read more
impl Display for ResolveError
[src]
impl Display for ResolveError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<ResolveErrorKind> for ResolveError
[src]
impl From<ResolveErrorKind> for ResolveError
fn from(kind: ResolveErrorKind) -> ResolveError
[src]
fn from(kind: ResolveErrorKind) -> ResolveError
Performs the conversion.
impl From<Context<ResolveErrorKind>> for ResolveError
[src]
impl From<Context<ResolveErrorKind>> for ResolveError
fn from(inner: Context<ResolveErrorKind>) -> ResolveError
[src]
fn from(inner: Context<ResolveErrorKind>) -> ResolveError
Performs the conversion.
impl From<&'static str> for ResolveError
[src]
impl From<&'static str> for ResolveError
fn from(msg: &'static str) -> ResolveError
[src]
fn from(msg: &'static str) -> ResolveError
Performs the conversion.
impl From<String> for ResolveError
[src]
impl From<String> for ResolveError
fn from(msg: String) -> ResolveError
[src]
fn from(msg: String) -> ResolveError
Performs the conversion.
impl From<Error> for ResolveError
[src]
impl From<Error> for ResolveError
fn from(e: Error) -> ResolveError
[src]
fn from(e: Error) -> ResolveError
Performs the conversion.
impl From<ProtoError> for ResolveError
[src]
impl From<ProtoError> for ResolveError
fn from(e: ProtoError) -> ResolveError
[src]
fn from(e: ProtoError) -> ResolveError
Performs the conversion.
impl From<ResolveError> for Error
[src]
impl From<ResolveError> for Error
fn from(e: ResolveError) -> Self
[src]
fn from(e: ResolveError) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for ResolveError
impl Send for ResolveError
impl Sync for ResolveError
impl Sync for ResolveError