linera_core::notifier

Trait Notifier

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

Required Methods§

Source

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

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>>>

Source§

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

Source§

impl Notifier for Arc<ChannelNotifier<Notification>>

Source§

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

Implementors§