Trait CommonErrorDerivative

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

Provided Methods§

Source

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

Source

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

Source

fn forbidden<M: ToString>(msg: M) -> 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§

Source§

impl CommonErrorDerivative for garage_api::s3::error::Error

Source§

impl CommonErrorDerivative for garage_api::signature::error::Error