pub trait Subject<'or, 'sub, T, E>: Observable<'or, 'sub, T, E> + Observer<T, E> {
// Required method
fn terminated(&self) -> Option<Termination<E>>
where E: Clone;
}Expand description
A Subject is a sort of bridge or proxy that acts both as an observer and as an Observable. See https://reactivex.io/documentation/subject.html
Required Methods§
fn terminated(&self) -> Option<Termination<E>>where
E: Clone,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.