pub trait ResultExt<T> {
// Required methods
fn wrap(self) -> Result<T, Error>;
fn context<C: Display + Send + Sync + 'static>(
self,
ctx: C,
) -> Result<T, Error>;
}
Required Methods§
fn wrap(self) -> Result<T, Error>
fn context<C: Display + Send + Sync + 'static>(self, ctx: C) -> Result<T, Error>
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.