Trait DataNotifier

Source
pub trait DataNotifier:
    Debug
    + Clone
    + Send
    + Sync {
    // Required method
    fn notify(&self);
}
Expand description

A handle to a notifier that can be used to signal to a receiver that data is available.

Notifiers can be cloned to allow for multiple current notifiers.

Required Methods§

Source

fn notify(&self)

Notify the receiver that data is available.

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 DataNotifier for ()

Source§

fn notify(&self)

Source§

impl<D: DataNotifier> DataNotifier for Option<D>

Source§

fn notify(&self)

Implementors§