Subject

Trait Subject 

Source
pub trait Subject {
    // Required method
    fn notify(&self);
}
Expand description

An object which notifies some group of Observers. When it is notified, all the listeners are notified.

Required Methods§

Source

fn notify(&self)

Triggers the Observers corresponding notify implementations.

Implementors§

Source§

impl<O> Subject for HashSubject<O>
where O: HashSetObserver,

Source§

impl<O> Subject for VecSubject<O>
where O: Observer,