FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    A subject without observers.

    Source

    as_observable

    fn as_observable(self: &Rc<Self>) -> Rc<dyn IObservable<T>>
    

    The subject as the handle of an observable sequence.

    Source

    as_observer

    fn as_observer(self: &Rc<Self>) -> Rc<dyn IObserver<T>>
    

    The subject as an observer.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.