pub trait Observer<T> {
// Required method
fn notify(&mut self, message: T);
}Expand description
A Observer observing a Observable
T is the message being sent from the Observable
Required Methods§
Sourcefn notify(&mut self, message: T)
fn notify(&mut self, message: T)
The Observable