Subject
struct · ferroui-reactive · v0.5.0
struct Subject<T>
A subject that hands every notification to the observers subscribed at that moment
(Subject<T>). An observer that subscribes after the end receives the end at once. Using a
disposed subject panics, where upstream throws ObjectDisposedException.
Members
new
fn new() -> Rc<Self>
A subject without observers.
as_observable
fn as_observable(self: &Rc<Self>) -> Rc<dyn IObservable<T>>
The subject as the handle of an observable sequence.
as_observer
fn as_observer(self: &Rc<Self>) -> Rc<dyn IObserver<T>>
The subject as an observer.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeISubjectHandle<A, B>ISubject<A, B>Borrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnySubscribeGuard<T>IObserver<T>IObservable<T>IDisposableSubjectBase<T>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.