Trait ErrorHandlerFunction

Source
pub trait ErrorHandlerFunction:
    Fn(&str)
    + Send
    + Sync
    + 'static { }
Expand description

Trait alias for error-handling functions used in a recoverable context.

  • Functions implementing this trait must accept a &str as an error message and satisfy Fn(&str) + Send + Sync + 'static.

Implementors§

Source§

impl<T> ErrorHandlerFunction for T
where T: Fn(&str) + Send + Sync + 'static,