Skip to main content

ResultExt

Trait ResultExt 

Source
pub trait ResultExt<T> {
    // Required method
    fn with_context<C, F>(self, f: F) -> AppResult<T>
       where F: FnOnce() -> C,
             C: Into<String>;
}

Required Methods§

Source

fn with_context<C, F>(self, f: F) -> AppResult<T>
where F: FnOnce() -> C, C: Into<String>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, E> ResultExt<T> for Result<T, E>
where AppError: From<E>,

Source§

fn with_context<C, F>(self, f: F) -> AppResult<T>
where F: FnOnce() -> C, C: Into<String>,

Implementors§