Skip to main content

ObserverCore

Trait ObserverCore 

Source
pub trait ObserverCore<T> {
    // Required methods
    fn on_next_core(&self, value: T);
    fn on_error_core(&self, error: ObservableError);
    fn on_completed_core(&self);
}
Expand description

The handlers of an ObserverBase (the abstract members OnNextCore, OnErrorCore and OnCompletedCore of ObserverBase<T>).

Required Methods§

Source

fn on_next_core(&self, value: T)

Handles a value (OnNextCore).

Source

fn on_error_core(&self, error: ObservableError)

Handles the error that ends the sequence (OnErrorCore).

Source

fn on_completed_core(&self)

Handles the end of the sequence (OnCompletedCore).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§