Trait ErrorHandlerFunction

Source
pub trait ErrorHandlerFunction:
    FnOnce(&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 FnOnce(&str) + Send + Sync + 'static.

Implementors§

Source§

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