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§
Sourcefn notify(&self, notifications: &[Notification])
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 Arc<Mutex<Vec<Notification>>>
Available on with_testing only.
impl Notifier for Arc<Mutex<Vec<Notification>>>
Available on
with_testing only.