FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FerroPropertySignal

    struct · ferroui-reactiveui-controls · v0.5.0

    struct FerroPropertySignal<T>
    

    A property of a FerroUI object as a signal: an observer whose values on_next handles, and the observable of the property (FerroPropertySignal<T>).

    It counts its observers (has_observers); it is disposed by its completion, by an error or by dispose, after which the values pushed into it are dropped.

    View source

    Members

    new

    fn new(on_next: impl Fn(T) -> () + 'static, observable: Rc<dyn IObservable<T>>) -> Rc<Self>
    

    The signal that hands the values pushed into it to on_next and whose observers subscribe to observable (FerroPropertySignal<T>(Action<T>, IObservable<T>)).

    Source

    is_disposed

    fn is_disposed(self: &Self) -> bool
    

    Whether the signal has been disposed (IsDisposed).

    Source

    has_observers

    fn has_observers(self: &Self) -> bool
    

    Whether observers are subscribed (HasObservers).

    Source

    Trait implementations

    Availability

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