pub trait ErrorSpecify: Sized {
// Required methods
fn code(self, code: Code) -> Self;
fn subject(self, subject: Subject) -> Self;
fn state(self, state: State) -> Self;
fn location(self, location: Location) -> Self;
}Expand description
Allows easy specification of different error properties.
Required Methods§
fn code(self, code: Code) -> Self
fn subject(self, subject: Subject) -> Self
fn state(self, state: State) -> Self
fn location(self, location: Location) -> Self
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.