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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. 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 From<Error> for ProtoError
impl From<Error> for ProtoError
sourceimpl From<ErrorStack> for ProtoError
impl From<ErrorStack> for ProtoError
sourcefn from(e: SslErrorStack) -> Self
fn from(e: SslErrorStack) -> Self
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for ProtoError
impl From<FromUtf8Error> for ProtoError
sourcefn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for ProtoError
impl From<ParseError> for ProtoError
sourcefn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseIntError> for ProtoError
impl From<ParseIntError> for ProtoError
sourcefn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
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 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 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<ProtoError> for JsValue
This is supported 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 Error
This is supported 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 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<ProtoErrorKind> for ProtoError
impl From<ProtoErrorKind> for ProtoError
sourcefn from(kind: ProtoErrorKind) -> Self
fn from(kind: ProtoErrorKind) -> Self
Converts to this type from the input type.
sourceimpl From<String> for ProtoError
impl From<String> for ProtoError
sourceimpl From<Unspecified> for ProtoError
impl From<Unspecified> for ProtoError
sourcefn from(e: Unspecified) -> Self
fn from(e: Unspecified) -> Self
Converts to this type from the input type.
sourceimpl From<Utf8Error> for ProtoError
impl From<Utf8Error> 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>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)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>,
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