Skip to main content

ErrorCode

Trait ErrorCode 

Source
pub trait ErrorCode {
    // Required methods
    fn as_str(&self) -> &str;
    fn message(&self) -> &str;
}
Expand description

Stable RustAuth error-code metadata.

Required Methods§

Source

fn as_str(&self) -> &str

Source

fn message(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> ErrorCode for &T
where T: ErrorCode,

Source§

fn as_str(&self) -> &str

Source§

fn message(&self) -> &str

Implementors§