Skip to main content

ErrorHandler

Trait ErrorHandler 

Source
pub trait ErrorHandler<OkType, ErrType>
where ErrType: Clone,
{ // Required method fn handle_error(self, error: ErrType) -> Result<OkType, ErrType>; }

Required Methods§

Source

fn handle_error(self, error: ErrType) -> Result<OkType, ErrType>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<ReplierOkType, OkType, ErrType> ErrorHandler<OkType, ErrType> for Sender<Result<ReplierOkType, ErrType>>
where ErrType: Clone,

Source§

fn handle_error(self, error: ErrType) -> Result<OkType, ErrType>

Implementors§