Skip to main content

StreamErrorHandler

Trait StreamErrorHandler 

Source
pub trait StreamErrorHandler<Err> {
    // Required method
    fn handle(&mut self, error: &Err) -> StreamErrorAction;
}
Expand description

Handles stream errors and determines the appropriate StreamErrorAction.

Required Methods§

Source

fn handle(&mut self, error: &Err) -> StreamErrorAction

Handles a stream error and returns the action to take.

Implementors§

Source§

impl<Err, F> StreamErrorHandler<Err> for F