ErrorSpecify

Trait ErrorSpecify 

Source
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§

Source

fn code(self, code: Code) -> Self

Source

fn subject(self, subject: Subject) -> Self

Source

fn state(self, state: State) -> Self

Source

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.

Implementors§