pub trait AbstractObserver<T, Error = ()>: Send + Sync{
// Provided methods
fn next(&self, value: T) { ... }
fn error(&self, error: Error) { ... }
fn complete(&self) { ... }
fn start(&self, subscription: Arc<Subscription<T, Error>>) { ... }
}
Expand description
An AbstractObserver
is used to receive data from an Observable
, and
is supplied as an argument to subscribe
in boxed form.
Provided Methods§
Sourcefn start(&self, subscription: Arc<Subscription<T, Error>>)
fn start(&self, subscription: Arc<Subscription<T, Error>>)
Receives the subscription object when subscribe
is called.