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§
Sourcefn on_next_core(&self, value: T)
fn on_next_core(&self, value: T)
Handles a value (OnNextCore).
Sourcefn on_error_core(&self, error: ObservableError)
fn on_error_core(&self, error: ObservableError)
Handles the error that ends the sequence (OnErrorCore).
Sourcefn on_completed_core(&self)
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".