pub trait ErrorKind: Debug {
    // Provided methods
    fn description(&self) -> &str { ... }
    fn display(&self, f: &mut Formatter<'_>) -> Result { ... }
}
Expand description

This trait represents an error kind which TrackableError can have.

Provided Methods§

source

fn description(&self) -> &str

A short description of the error kind.

This is used for the description of the error that contains it.

The default implementation always returns "An error".

source

fn display(&self, f: &mut Formatter<'_>) -> Result

Displays this kind.

The default implementation uses the debugging form of this.

Implementations on Foreign Types§

source§

impl ErrorKind for String

source§

fn description(&self) -> &str

source§

impl ErrorKind for ErrorKind

source§

fn description(&self) -> &str

Implementors§