pub trait ErrorExtensions: Sized {
// Required method
fn extend(&self) -> Error;
// Provided method
fn extend_with<C>(self, cb: C) -> Error
where C: FnOnce(&Self, &mut ErrorExtensionValues) { ... }
}
Expand description
An error which can be extended into a Error
.
Required Methods§
Provided Methods§
sourcefn extend_with<C>(self, cb: C) -> Errorwhere
C: FnOnce(&Self, &mut ErrorExtensionValues),
fn extend_with<C>(self, cb: C) -> Errorwhere
C: FnOnce(&Self, &mut ErrorExtensionValues),
Add extensions to the error, using a callback to make the extensions.
Object Safety§
This trait is not object safe.