pub struct AnonymousObserver<T> { /* private fields */ }Expand description
An observer made of functions (AnonymousObserver<T>). It ignores everything after a terminal
notification. Without a function for errors, an error panics, as upstream rethrows it.
Implementations§
Source§impl<T> AnonymousObserver<T>
impl<T> AnonymousObserver<T>
Trait Implementations§
Source§impl<T> IObserver<T> for AnonymousObserver<T>
impl<T> IObserver<T> for AnonymousObserver<T>
fn on_next(&self, value: T)
fn on_error(&self, error: ObservableError)
fn on_completed(&self)
Auto Trait Implementations§
impl<T> !Freeze for AnonymousObserver<T>
impl<T> !RefUnwindSafe for AnonymousObserver<T>
impl<T> !Send for AnonymousObserver<T>
impl<T> !Sync for AnonymousObserver<T>
impl<T> !UnwindSafe for AnonymousObserver<T>
impl<T> Unpin for AnonymousObserver<T>
impl<T> UnsafeUnpin for AnonymousObserver<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more