Struct ssdp::SSDPError[]

pub struct SSDPError(pub SSDPErrorKind, _);

The Error type.

This tuple struct is made of two elements:

  • an ErrorKind which is used to determine the type of the error.
  • An internal State, not meant for direct use outside of error_chain internals, containing:
    • a backtrace, generated when the error is created.
    • an error chain, used for the implementation of Error::cause().

Methods

impl SSDPError

Constructs an error from a kind, and generates a backtrace.

Constructs a chained error from another error and a kind, and generates a backtrace.

Returns the kind of the error.

Important traits for ErrorChainIter<'a>

Iterates over the error chain.

Returns the backtrace associated with this error.

Methods from Deref<Target = SSDPErrorKind>

A string describing the error kind.

Trait Implementations

impl Debug for SSDPError

Formats the value using the given formatter. Read more

impl ChainedError for SSDPError

Associated kind type.

Constructs an error from a kind, and generates a backtrace.

Constructs a chained error from another error and a kind, and generates a backtrace.

Returns the kind of the error.

Important traits for ErrorChainIter<'a>

Iterates over the error chain.

Returns the backtrace associated with this error.

Returns an object which implements Display for printing the full context of this error. Read more

impl Error for SSDPError

This method is soft-deprecated. Read more

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

impl Display for SSDPError

Formats the value using the given formatter. Read more

impl From<Error> for SSDPError

Performs the conversion.

impl From<AddrParseError> for SSDPError

Performs the conversion.

impl From<Error> for SSDPError

Performs the conversion.

impl From<ParseError> for SSDPError

Performs the conversion.

impl From<SSDPErrorKind> for SSDPError

Performs the conversion.

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

Performs the conversion.

impl From<String> for SSDPError

Performs the conversion.

impl Deref for SSDPError

The resulting type after dereferencing.

Dereferences the value.

impl From<SSDPError> for SSDPErrorKind

Performs the conversion.

Auto Trait Implementations

impl Send for SSDPError

impl !Sync for SSDPError