Trait ErrorWrapper

Source
pub trait ErrorWrapper {
    type Value;

    // Required method
    fn wrap_error<M>(self, message: M) -> Result<Self::Value, Error>
       where M: Display;
}

Required Associated Types§

Required Methods§

Source

fn wrap_error<M>(self, message: M) -> Result<Self::Value, Error>
where M: Display,

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.

Implementations on Foreign Types§

Source§

impl<T, E> ErrorWrapper for Result<T, E>
where Error: From<E>,

Source§

type Value = T

Source§

fn wrap_error<M>(self, message: M) -> Result<T, Error>
where M: Display,

Implementors§