CommonErrorDerivative

Trait CommonErrorDerivative 

Source
pub trait CommonErrorDerivative: From<CommonError> {
    // Provided methods
    fn internal_error<M>(msg: M) -> Self
       where M: ToString { ... }
    fn bad_request<M>(msg: M) -> Self
       where M: ToString { ... }
    fn forbidden<M>(msg: M) -> Self
       where M: ToString { ... }
}

Provided Methods§

Source

fn internal_error<M>(msg: M) -> Self
where M: ToString,

Source

fn bad_request<M>(msg: M) -> Self
where M: ToString,

Source

fn forbidden<M>(msg: M) -> Self
where M: ToString,

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§

Source§

impl CommonErrorDerivative for garage_api_s3::error::Error

Source§

impl CommonErrorDerivative for garage_api_common::signature::error::Error