Subject

Trait Subject 

Source
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§

Source

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.

Implementors§

Source§

impl<'or, 'sub, T, E> Subject<'or, 'sub, T, E> for AsyncSubject<'or, T, E>
where T: Clone + NecessarySendSync + 'sub, E: Clone + NecessarySendSync + 'sub, 'or: 'sub,

Source§

impl<'or, 'sub, T, E> Subject<'or, 'sub, T, E> for BehaviorSubject<'or, T, E>
where T: Clone + NecessarySendSync + 'sub, E: Clone + NecessarySendSync + 'sub, 'or: 'sub,

Source§

impl<'or, 'sub, T, E> Subject<'or, 'sub, T, E> for PublishSubject<'or, T, E>
where T: Clone + NecessarySendSync + 'sub, E: Clone + NecessarySendSync + 'sub, 'or: 'sub,

Source§

impl<'or, 'sub, T, E> Subject<'or, 'sub, T, E> for ReplaySubject<'or, T, E>
where T: Clone + NecessarySendSync + 'sub, E: Clone + NecessarySendSync + 'sub, 'or: 'sub,