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§
sourcefn description(&self) -> &str
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"
.