Notifier

Trait Notifier 

Source
pub trait Notifier: Send + Sync {
    // Required method
    fn notify(&self) -> Result<(), Error>;

    // Provided method
    fn typeless(self) -> TypelessNotifier
       where Self: Sized + 'static { ... }
}
Expand description

An abstract notifier.

Required Methods§

Source

fn notify(&self) -> Result<(), Error>

Send a notification to the recipient.

Provided Methods§

Source

fn typeless(self) -> TypelessNotifier
where Self: Sized + 'static,

Implementors§

Source§

impl Notifier for TypelessNotifier

Source§

impl<M> Notifier for OnceNotifier<M>
where M: Send + Sync + 'static,

Source§

impl<M> Notifier for TypedNotifier<M>
where M: Clone + Send + Sync + 'static,