FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IReactiveCommandOf

    trait · ferroui-reactiveui · v0.5.0

    trait IReactiveCommandOf<P, R>: IObservable<R> + IReactiveCommand
    

    A reactive command with its parameter and result types (IReactiveCommand<TParam, TResult>). As an observable it notifies the results of every execution.

    Deviation (DEVIATIONS.md, ReactiveUI): Rust has one name per trait, so the generic interface, which upstream overloads on the name IReactiveCommand, is IReactiveCommandOf. The overload Execute() is execute_default.

    View source

    Members

    execute

    fn execute(self: &Self, parameter: P) -> Rc<dyn IObservable<R>>
    

    An observable that executes the command with parameter when it is subscribed, and notifies the results of that execution (Execute(TParam)). Nothing runs until it is subscribed.

    Source

    execute_default

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

    execute with the default parameter (Execute(), which passes default(TParam)).

    Source

    Trait implementations

    Availability

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