pub trait Observer<T, E> {
// Required methods
fn on_next(&mut self, value: T);
fn on_termination(self, termination: Termination<E>);
}Expand description
A trait for observing the progress and termination state of an operation.
Required Methods§
Sourcefn on_termination(self, termination: Termination<E>)
fn on_termination(self, termination: Termination<E>)
Called when the operation has reached its termination state.