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).
Members
Async
type Async
The asynchronous function: Rc<dyn Fn(A1, .., An) -> Rc<dyn IObservable<R>>>.
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)).
Trait implementations
TryToAsyncFunction<(), R>TryToAsyncFunction<(A1,), R>TryToAsyncFunction<(A1, A2), R>TryToAsyncFunction<(A1, A2, A3), R>TryToAsyncFunction<(A1, A2, A3, A4), R>TryToAsyncFunction<(A1, A2, A3, A4, A5), R>TryToAsyncFunction<(A1, A2, A3, A4, A5, A6), R>TryToAsyncFunction<(A1, A2, A3, A4, A5, A6, A7), R>TryToAsyncFunction<(A1, A2, A3, A4, A5, A6, A7, A8), R>TryToAsyncFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9), R>TryToAsyncFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10), R>TryToAsyncFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11), R>TryToAsyncFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12), R>TryToAsyncFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13), R>TryToAsyncFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14), R>TryToAsyncFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15), R>TryToAsyncFunction<(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16), R>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.