Trait ToDomainError

Source
pub trait ToDomainError
where Self: Sized + StdError + 'static + Into<Error<DomainError>> + Send + Sync, for<'a> &'a Self: Into<HttpError>,
{ // Provided methods fn to_domain_error(self) -> DomainError { ... } fn display(&self, f: &mut Formatter<'_>) -> Result { ... } }
Expand description

Internally used by HttpError derive.

Provided Methods§

Source

fn to_domain_error(self) -> DomainError

Source

fn display(&self, f: &mut Formatter<'_>) -> Result

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§