pub trait OnError: Send + Sync {
    // Provided method
    fn on_error<'life0, 'async_trait>(
        &'life0 self,
        _error: Error
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Provided Methods§

source

fn on_error<'life0, 'async_trait>( &'life0 self, _error: Error ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<F> OnError for F
where F: Fn(Error) + Send + Sync,