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
Required methods
Attach a Observer
Should be implemented using ObserverList::attach.
Detach a Observer
Should be implemented using ObserverList::detach.