shared::error

Trait IntoAnyhow

Source
pub trait IntoAnyhow<T> {
    // Required method
    fn into_anyhow(self) -> Result<T>;
}
Expand description

Helper trait

Required Methods§

Source

fn into_anyhow(self) -> Result<T>

Convert self into a result with an anyhow error

§Errors

Maps the error in a Result into an anyhow::Error.

Implementations on Foreign Types§

Source§

impl<T, E> IntoAnyhow<T> for Result<T, E>
where E: Error + Send + Sync + 'static + Into<Error>,

Implementors§