Trait tf_observer::Observable[][src]

pub trait Observable<T> {
    fn attach(&mut self, observer: Weak<Mutex<Box<dyn Observer<T> + Send>>>);
fn detach(&mut self, observer: Weak<Mutex<Box<dyn Observer<T> + Send>>>); }
Expand description

A Observable that can be observed by Observer.

T is the message being sent from the Observable to the Observer. This should be implemented using the ObserverList.

Required methods

Attach a Observer to the Observable.

Should be implemented using ObserverList::attach.

Detach a Observer to the Observable.

Should be implemented using ObserverList::detach.

Implementors