Skip to main content

ErrorCodes

Trait ErrorCodes 

Source
pub trait ErrorCodes: Into<AuthError> {
    const CODES: &'static [&'static str];
}
Expand description

Lets a plugin register its error codes at build time, so two plugins can’t claim one code.

Required Associated Constants§

Source

const CODES: &'static [&'static str]

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§