Struct trust_dns_proto::error::ProtoError
source · [−]#[non_exhaustive]pub struct ProtoError {
pub kind: Box<ProtoErrorKind>,
pub backtrack: Option<ExtBacktrace>,
}
Expand description
The error type for errors that get returned in the crate
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kind: Box<ProtoErrorKind>
Kind of error that ocurred
backtrack: Option<ExtBacktrace>
Backtrace to the source of the error
Implementations
sourceimpl ProtoError
impl ProtoError
Trait Implementations
sourceimpl Clone for ProtoError
impl Clone for ProtoError
sourcefn clone(&self) -> ProtoError
fn clone(&self) -> ProtoError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProtoError
impl Debug for ProtoError
sourceimpl Display for ProtoError
impl Display for ProtoError
sourceimpl Error for ProtoError
impl Error for ProtoError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<&'static str> for ProtoError
impl From<&'static str> for ProtoError
sourceimpl From<DecodeError> for ProtoError
impl From<DecodeError> for ProtoError
sourcefn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
sourceimpl<E> From<E> for ProtoError where
E: Into<ProtoErrorKind>,
impl<E> From<E> for ProtoError where
E: Into<ProtoErrorKind>,
sourceimpl<T> From<PoisonError<T>> for ProtoError
impl<T> From<PoisonError<T>> for ProtoError
sourcefn from(_e: PoisonError<T>) -> Self
fn from(_e: PoisonError<T>) -> Self
Converts to this type from the input type.
sourceimpl From<ProtoError> for DnsResponseStream
impl From<ProtoError> for DnsResponseStream
sourcefn from(e: ProtoError) -> Self
fn from(e: ProtoError) -> Self
Converts to this type from the input type.
sourceimpl From<ProtoError> for Error
impl From<ProtoError> for Error
sourcefn from(e: ProtoError) -> Self
fn from(e: ProtoError) -> Self
Converts to this type from the input type.
sourceimpl From<ProtoError> for Error
Available on crate feature dns-over-https
only.
impl From<ProtoError> for Error
dns-over-https
only.sourcefn from(msg: ProtoError) -> Self
fn from(msg: ProtoError) -> Self
Converts to this type from the input type.
sourceimpl From<ProtoError> for JsValue
Available on crate feature wasm-bindgen
only.
impl From<ProtoError> for JsValue
wasm-bindgen
only.sourcefn from(e: ProtoError) -> Self
fn from(e: ProtoError) -> Self
Converts to this type from the input type.
sourceimpl From<ProtoError> for String
impl From<ProtoError> for String
sourcefn from(e: ProtoError) -> Self
fn from(e: ProtoError) -> Self
Converts to this type from the input type.
sourceimpl From<String> for ProtoError
impl From<String> for ProtoError
sourceimpl RetryableError for ProtoError
impl RetryableError for ProtoError
Auto Trait Implementations
impl !RefUnwindSafe for ProtoError
impl Send for ProtoError
impl Sync for ProtoError
impl Unpin for ProtoError
impl !UnwindSafe for ProtoError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more