Skip to main content

Notifier

Trait Notifier 

Source
pub trait Notifier:
    Clone
    + Send
    + 'static {
    // Required method
    fn notify(&self, notifications: &[Notification]);
}
Expand description

A type that can dispatch notifications produced by the worker.

Required Methods§

Source

fn notify(&self, notifications: &[Notification])

Dispatches the given notifications to the interested clients.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Notifier for ()

Source§

fn notify(&self, _notifications: &[Notification])

Source§

impl Notifier for Arc<Mutex<Vec<Notification>>>

Available on with_testing only.
Source§

fn notify(&self, notifications: &[Notification])

Source§

impl Notifier for Arc<ChannelNotifier<Notification>>

Source§

fn notify(&self, notifications: &[Notification])

Implementors§