Trait lumina_node_wasm::error::Context
source · pub trait Context<T> {
// Required method
fn context<C>(self, context: C) -> Result<T, Error>
where C: Display;
// Provided method
fn with_context<F, C>(self, context_fn: F) -> Result<T, Error>
where C: Display,
F: FnOnce() -> C,
Self: Sized { ... }
}
Expand description
Utility to add more context to the Error
.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.