Struct dotenv::Error [] [src]

pub struct Error(pub ErrorKind, pub State);

The Error type.

This struct is made of three things:

  • ErrorKind which is used to determine the type of the error.
  • a backtrace, generated when the error is created.
  • an error chain, used for the implementation of Error::cause().

Methods

impl Error
[src]

[src]

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

[src]

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

[src]

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

[src]

Returns the kind of the error.

[src]

Iterates over the error chain.

[src]

Returns the backtrace associated with this error.

[src]

Extends the error chain with a new entry.

impl Error
[src]

[src]

Methods from Deref<Target = ErrorKind>

[src]

A string describing the error kind.

Trait Implementations

impl From<Error> for ErrorKind
[src]

[src]

Performs the conversion.

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

[src]

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

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl<'__a> From<&'__a str> for Error
[src]

[src]

Performs the conversion.

impl From<String> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<VarError> for Error
[src]

[src]

Performs the conversion.

impl From<ErrorKind> for Error
[src]

[src]

Performs the conversion.

impl Deref for Error
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl ChainedError for Error
[src]

Associated kind type.

[src]

[src]

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

[src]

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

[src]

Returns the kind of the error.

[src]

Iterates over the error chain.

[src]

Returns the backtrace associated with this error.

[src]

Extends the error chain with a new entry.

[src]

[src]

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

Auto Trait Implementations

impl Send for Error

impl !Sync for Error