Skip to main content

DocboxServiceError

Trait DocboxServiceError 

Source
pub trait DocboxServiceError:
    Error
    + Send
    + Sync
    + 'static {
    // Provided methods
    fn reason(&self) -> String { ... }
    fn type_name(&self) -> &str { ... }
}

Provided Methods§

Source

fn reason(&self) -> String

Provides the reason message to use in the error response

Source

fn type_name(&self) -> &str

Provides the full type name for the actual error type thats been erased by dynamic typing (For better error source clarity)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§