FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TryToAsyncFunction

    trait · ferroui-reactive · v0.5.0

    trait TryToAsyncFunction<Args, R>
    

    A closure of Args (a tuple of its argument types) returning Result<R, ObservableError>, which Observable::try_to_async turns into an asynchronous function whose sequence ends with the error of a failed call (ToAsync of a function that throws).

    View source

    Members

    Async

    type Async
    

    The asynchronous function: Rc<dyn Fn(A1, .., An) -> Rc<dyn IObservable<R>>>.

    Source

    try_to_async_on

    fn try_to_async_on(self: Self, scheduler: Rc<dyn IScheduler>) -> <Self as >::Async
    

    The asynchronous function whose calls run this one on scheduler (ToAsync(.., IScheduler)).

    Source

    Trait implementations

    Availability

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