Trait thiserror_string_context::AddErrorContext

source ·
pub trait AddErrorContext<E, T> {
    // Required method
    fn with_context<'a>(self, f: impl FnOnce() -> &'a str) -> Result<T, E>;
}

Required Methods§

source

fn with_context<'a>(self, f: impl FnOnce() -> &'a str) -> Result<T, E>

Object Safety§

This trait is not object safe.

Implementors§