Trait rxrust::observer::Observer [−][src]
pub trait Observer {
type Item;
type Err;
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.
Err
the type of the error may propagating.