pub trait Observer<T, E> {
// Required methods
fn on_next(&mut self, item: T);
fn on_completed(self);
fn on_error(self, error: E);
}Expand description
An observer that receives values from an observable.
Required Methods§
Sourcefn on_completed(self)
fn on_completed(self)
Notifies the observer that the provider has finished sending notifications.