Struct trust_dns_proto::error::ProtoError
source · [−]#[non_exhaustive]pub struct ProtoError {
pub kind: Box<ProtoErrorKind>,
}
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
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
Performs the conversion.
sourceimpl From<FromUtf8Error> for ProtoError
impl From<FromUtf8Error> for ProtoError
sourcefn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Performs the conversion.
sourceimpl From<ParseError> for ProtoError
impl From<ParseError> for ProtoError
sourcefn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Performs the conversion.
sourceimpl From<ParseIntError> for ProtoError
impl From<ParseIntError> for ProtoError
sourcefn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Performs the conversion.
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
Performs the conversion.
sourceimpl From<ProtoError> for Error
impl From<ProtoError> for Error
sourcefn from(e: ProtoError) -> Self
fn from(e: ProtoError) -> Self
Performs the conversion.
sourceimpl From<ProtoError> for String
impl From<ProtoError> for String
sourcefn from(e: ProtoError) -> Self
fn from(e: ProtoError) -> Self
Performs the conversion.
sourceimpl From<ProtoError> for DnsResponseStream
impl From<ProtoError> for DnsResponseStream
sourcefn from(e: ProtoError) -> Self
fn from(e: ProtoError) -> Self
Performs the conversion.
sourceimpl From<ProtoErrorKind> for ProtoError
impl From<ProtoErrorKind> for ProtoError
sourcefn from(kind: ProtoErrorKind) -> Self
fn from(kind: ProtoErrorKind) -> Self
Performs the conversion.
sourceimpl From<SslErrorStack> for ProtoError
impl From<SslErrorStack> for ProtoError
sourcefn from(e: SslErrorStack) -> Self
fn from(e: SslErrorStack) -> Self
Performs the conversion.
sourceimpl From<Unspecified> for ProtoError
impl From<Unspecified> for ProtoError
sourcefn from(e: Unspecified) -> Self
fn from(e: Unspecified) -> Self
Performs the conversion.
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> 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