Trait ErrorExt

Source
pub trait ErrorExt<E, HI>: Sized {
    // Provided method
    fn on_error(self, error_handler: E) -> ErrorDecorator<E, Self, HI> { ... }
}
Expand description

Provides a shortcut for creating error decorator.

Provided Methods§

Source

fn on_error(self, error_handler: E) -> ErrorDecorator<E, Self, HI>

A shortcut to create a new error decorator.

Example: handler.on_error(error_handler)

§Arguments
  • error_handler - An error handler.

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.

Implementors§

Source§

impl<E, H, HI> ErrorExt<E, HI> for H
where H: Handler<HI>, HI: TryFromInput,