pub trait Observer {
type Item;
type Err;
// Required methods
fn next(&mut self, value: Self::Item);
fn error(&mut self, err: Self::Err);
fn complete(&mut self);
fn is_stopped(&self) -> bool;
}Expand description
An Observer is a consumer of values delivered by an Observable. One for each
type of notification delivered by the Observable: next, error,
and complete.
Item the type of the elements being emitted.
Errthe type of the error may propagating.