pub trait HandleExt<T> {
// Required methods
fn then<U, F>(self, f: F) -> Result<U>
where F: FnOnce(T) -> Result<U>;
fn then_with<U, F>(self, ctx: impl Into<String>, f: F) -> Result<U>
where F: FnOnce(T) -> Result<U>;
fn context(self, ctx: impl Into<String>) -> Self;
fn attach(self, key: &'static str, val: impl IntoValue) -> Self;
}Expand description
Extension trait for adding context to Result<T, Handled>.
Required Methods§
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.