FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    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.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • IStreamPlugin

    Availability

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