FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LightweightObservable

    trait · ferroui-base · v0.5.0

    trait LightweightObservable<T>: 'static
    

    The overridable members of an observable built on LightweightObservableBase: the observable embeds the base, returns it from observable_base and implements IObservable with LightweightObservableBase::subscribe.

    View source

    Members

    observable_base

    fn observable_base(self: &Self) -> &LightweightObservableBase<T>
    

    The embedded state.

    Source

    initialize

    fn initialize(self: &Self)
    

    Called when the first observer subscribes.

    Source

    deinitialize

    fn deinitialize(self: &Self)
    

    Called when the last observer unsubscribes, and after the observable completed or failed.

    Source

    subscribed

    fn subscribed(self: &Self, _observer: &Rc<dyn IObserver<T>>, _first: bool)
    

    Called after an observer subscribed; first tells whether it is the only one.

    Source

    Availability

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