Struct trust_dns_proto::error::ProtoError
source · pub struct ProtoError { /* private fields */ }
Expand description
The error type for errors that get returned in the crate
Implementations
sourceimpl ProtoError
impl ProtoError
sourcepub fn kind(&self) -> &ProtoErrorKind
pub fn kind(&self) -> &ProtoErrorKind
Get the kind of the error
Trait Implementations
sourceimpl Clone for ProtoError
impl Clone for ProtoError
sourceimpl Debug for ProtoError
impl Debug for ProtoError
sourceimpl Display for ProtoError
impl Display for ProtoError
sourceimpl Fail for ProtoError
impl Fail for ProtoError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<&'static str> for ProtoError
impl From<&'static str> for ProtoError
sourcefn from(msg: &'static str) -> ProtoError
fn from(msg: &'static str) -> ProtoError
Converts to this type from the input type.
sourceimpl From<Context<ProtoErrorKind>> for ProtoError
impl From<Context<ProtoErrorKind>> for ProtoError
sourcefn from(inner: Context<ProtoErrorKind>) -> ProtoError
fn from(inner: Context<ProtoErrorKind>) -> ProtoError
Converts to this type from the input type.
sourceimpl From<Error> for ProtoError
impl From<Error> for ProtoError
sourcefn from(e: Error) -> ProtoError
fn from(e: Error) -> ProtoError
Converts to this type from the input type.
sourceimpl From<Error> for ProtoError
impl From<Error> for ProtoError
sourcefn from(e: TimerError) -> ProtoError
fn from(e: TimerError) -> ProtoError
Converts to this type from the input type.
sourceimpl From<ParseError> for ProtoError
impl From<ParseError> for ProtoError
sourcefn from(e: ParseError) -> ProtoError
fn from(e: ParseError) -> ProtoError
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>) -> ProtoError
fn from(_e: PoisonError<T>) -> ProtoError
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<ProtoErrorKind> for ProtoError
impl From<ProtoErrorKind> for ProtoError
sourcefn from(kind: ProtoErrorKind) -> ProtoError
fn from(kind: ProtoErrorKind) -> ProtoError
Converts to this type from the input type.
sourceimpl From<SpawnError> for ProtoError
impl From<SpawnError> for ProtoError
sourcefn from(e: SpawnError) -> ProtoError
fn from(e: SpawnError) -> ProtoError
Converts to this type from the input type.
sourceimpl From<SslErrorStack> for ProtoError
impl From<SslErrorStack> for ProtoError
sourcefn from(e: SslErrorStack) -> ProtoError
fn from(e: SslErrorStack) -> ProtoError
Converts to this type from the input type.
sourceimpl From<String> for ProtoError
impl From<String> for ProtoError
sourcefn from(msg: String) -> ProtoError
fn from(msg: String) -> ProtoError
Converts to this type from the input type.
sourceimpl From<Unspecified> for ProtoError
impl From<Unspecified> for ProtoError
sourcefn from(e: Unspecified) -> ProtoError
fn from(e: Unspecified) -> ProtoError
Converts to this type from the input type.
sourceimpl From<Utf8Error> for ProtoError
impl From<Utf8Error> for ProtoError
sourcefn from(e: Utf8Error) -> ProtoError
fn from(e: Utf8Error) -> ProtoError
Converts to this type from the input type.
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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