Trait rx::Observer [] [src]

pub trait Observer<T, E> {
    fn on_next(&mut self, item: T);
    fn on_completed(self);
    fn on_error(self, error: E);
}

An observer that receives values from an observable.

Required Methods

Provides the observer with new data.

Notifies the observer that the provider has finished sending notifications.

Notifies the observer that the provider experienced an error condition.

Implementors