Trait Error

Source
pub trait Error:
    Fail
    + Copy
    + Eq {
    // Required method
    fn describe(self) -> &'static str;
}
Expand description

A discrete error with a known description.

Required Methods§

Source

fn describe(self) -> &'static str

Describes the error using a static string.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Error for !

Source§

fn describe(self) -> &'static str

Implementors§