Struct mdns::errors::Error []

pub struct Error {
    pub kind: ErrorKind,
    pub state: State,
}

The Error type

This has a simple structure to support pattern matching during error handling. The second field is internal state that is mostly irrelevant for error handling purposes.

Fields

The kind of the error.

Contains the error chain and the backtrace.

Methods

impl Error

Returns the backtrace associated with this error.

impl Error

Constructs an error from a kind.

Returns the kind of the error.

Iterates over the error chain.

Methods from Deref<Target = ErrorKind>

A string describing the error kind.

Trait Implementations

impl Debug for Error

Formats the value using the given formatter.

impl ChainedError for Error

Associated kind type.

Creates an error from it's parts.

Returns the first known backtrace, either from it's State or from one of the errors from foreign_links. Read more

impl Error for Error

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for Error

Formats the value using the given formatter. Read more

impl From<Error> for Error

Performs the conversion.

impl From<Error> for Error

Performs the conversion.

impl From<ErrorKind> for Error

Performs the conversion.

impl<'a> From<&'a str> for Error

Performs the conversion.

impl From<String> for Error

Performs the conversion.

impl Deref for Error

The resulting type after dereferencing

The method called to dereference a value