TaskStreamPlugin
struct · ferroui-base · v0.5.0
struct TaskStreamPlugin
Handles binding to TaskValues for the ^ stream binding operator.
A completed task produces its result, a failed one a binding error notification. The outcome of a task that is still running is delivered from a dispatcher job queued when the task finishes.
Members
handle_completed
fn handle_completed(task: &TaskValue) -> Rc<dyn IObservable<Option<BoxedValue>>>
The stream of a finished task: its result, or a binding error notification for a failed one. Panics if the task is still running.
observe
fn observe(task: &TaskValue) -> Rc<dyn IObservable<Option<BoxedValue>>>
The stream of a task: the outcome right away if the task has finished, otherwise delivered from a dispatcher job queued when the task finishes.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherIStreamPlugin
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.