pub trait ErrorHandler<E> {
// Required method
fn handle_error(
self: Arc<Self>,
error: E,
deps: DependencyMap,
) -> BoxFuture<'static, ()>;
}Expand description
An asynchronous handler of an error with dependencies.
Required Methods§
Sourcefn handle_error(
self: Arc<Self>,
error: E,
deps: DependencyMap,
) -> BoxFuture<'static, ()>
fn handle_error( self: Arc<Self>, error: E, deps: DependencyMap, ) -> BoxFuture<'static, ()>
Handles error with the dependencies available at the point of failure.
The map may be empty. Use DependencyMap::try_get if a dependency
might not be present.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".