Trait ErrorHandler

Source
pub trait ErrorHandler {
    // Required methods
    fn call(&self, error: AeronError);
    fn clone_box(&self) -> Box<dyn ErrorHandler + Send>;
}

Required Methods§

Source

fn call(&self, error: AeronError)

Source

fn clone_box(&self) -> Box<dyn ErrorHandler + Send>

Trait Implementations§

Source§

impl Clone for Box<dyn ErrorHandler + Send>

Source§

fn clone(&self) -> Box<dyn ErrorHandler + Send>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

Source§

impl<F> ErrorHandler for F
where F: Fn(AeronError) + Clone + Send + 'static,