FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SuspensionHostOf

    struct · ferroui-reactiveui · v0.5.0

    struct SuspensionHostOf<T: 'static>
    

    A suspension host whose state of the application has the type T (SuspensionHost<TAppState>).

    It has the observables of SuspensionHost and IsContinuing, and a typed state with the observable of its changes. Through ISuspensionHost the state is seen untyped: setting an untyped state of another type panics (InvalidCastException).

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    A host whose observables fail on subscription until a helper sets them (SuspensionHost<TAppState>()).

    Source

    is_continuing

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

    Ticks when the application continues an activity handed over from another device (IsContinuing).

    Source

    set_is_continuing

    fn set_is_continuing(self: &Self, value: Rc<dyn IObservable<()>>)
    

    Sets is_continuing.

    Source

    Trait implementations

    Availability

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