Struct wafer::errors::Error[]

pub struct Error(pub ErrorKind, pub State);

The Error type.

This tuple struct is made of two elements:

Methods

impl Error

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

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

Construct a chained error from another boxed error and a kind, and generates a backtrace

Returns the kind of the error.

Important traits for Iter<'a>

Iterates over the error chain.

Returns the backtrace associated with this error.

Extends the error chain with a new entry.

A short description of the error. This method is identical to Error::description()

Trait Implementations

impl Debug for Error

Formats the value using the given formatter. Read more

impl ChainedError for Error

Associated kind type.

Creates an error from its parts.

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 Iter<'a>

Iterates over the error chain.

Extends the error chain with a new entry.

Returns the backtrace associated with this error.

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

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

impl Error for Error

This method is soft-deprecated. Read more

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

🔬 This is a nightly-only experimental API. (error_type_id)

unclear whether to commit to this public implementation detail

Get the TypeId of self

impl Display for Error

Formats the value using the given formatter. Read more

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 From<Error> for ErrorKind

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl !Sync for Error