Struct trust_dns_resolver::error::ResolveError [−][src]
pub struct ResolveError { /* fields omitted */ }
Expand description
The error type for errors that get returned in the crate
Implementations
impl ResolveError
[src]
impl ResolveError
[src]pub fn kind(&self) -> &ResolveErrorKind
[src]
pub fn kind(&self) -> &ResolveErrorKind
[src]Get the kind of the error
pub fn from_response(
response: DnsResponse,
trust_nx: bool
) -> Result<DnsResponse, Self>
[src]
pub fn from_response(
response: DnsResponse,
trust_nx: bool
) -> Result<DnsResponse, Self>
[src]A conversion to determine if the response is an error
Trait Implementations
impl Clone for ResolveError
[src]
impl Clone for ResolveError
[src]fn clone(&self) -> ResolveError
[src]
fn clone(&self) -> ResolveError
[src]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)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ResolveError
[src]
impl Debug for ResolveError
[src]impl Display for ResolveError
[src]
impl Display for ResolveError
[src]impl Error for ResolveError
[src]
impl Error for ResolveError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<&'static str> for ResolveError
[src]
impl From<&'static str> for ResolveError
[src]fn from(msg: &'static str) -> ResolveError
[src]
fn from(msg: &'static str) -> ResolveError
[src]Performs the conversion.
impl From<Error> for ResolveError
[src]
impl From<Error> for ResolveError
[src]fn from(e: Error) -> ResolveError
[src]
fn from(e: Error) -> ResolveError
[src]Performs the conversion.
impl From<Error> for ResolveError
[src]
impl From<Error> for ResolveError
[src]fn from(e: Error) -> ResolveError
[src]
fn from(e: Error) -> ResolveError
[src]Performs the conversion.
impl<T> From<PoisonError<T>> for ResolveError
[src]
impl<T> From<PoisonError<T>> for ResolveError
[src]fn from(e: PoisonError<T>) -> Self
[src]
fn from(e: PoisonError<T>) -> Self
[src]Performs the conversion.
impl From<ProtoError> for ResolveError
[src]
impl From<ProtoError> for ResolveError
[src]fn from(e: ProtoError) -> ResolveError
[src]
fn from(e: ProtoError) -> ResolveError
[src]Performs the conversion.
impl From<ResolveErrorKind> for ResolveError
[src]
impl From<ResolveErrorKind> for ResolveError
[src]fn from(kind: ResolveErrorKind) -> ResolveError
[src]
fn from(kind: ResolveErrorKind) -> ResolveError
[src]Performs the conversion.
impl From<String> for ResolveError
[src]
impl From<String> for ResolveError
[src]fn from(msg: String) -> ResolveError
[src]
fn from(msg: String) -> ResolveError
[src]Performs the conversion.
impl RetryableError for ResolveError
[src]
impl RetryableError for ResolveError
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<E> FromProtoError for E where
E: From<ProtoError> + Error + Clone,
[src]
E: From<ProtoError> + Error + Clone,