FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TaskCompletedTrigger

    struct · ferroui-xaml-interactions · v0.5.0

    struct TaskCompletedTrigger
    

    A trigger that invokes its actions when the supplied task completes.

    The task is an ActionTask (the Task of the reference); the actions run in a job of the dispatcher after it completed, whether it ran to the end, failed or was canceled.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<TaskCompletedTrigger>
    

    Returns a strong reference to this object.

    Source

    task_property

    fn task_property() -> &'static StyledProperty<Option<ActionTask>>
    

    Identifies the Task property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a trigger.

    Source

    task

    fn task(self: &Self) -> Option<ActionTask>
    

    Gets or sets the task monitored by the trigger.

    Source

    set_task

    fn set_task(self: &Self, value: Option<ActionTask>)
    

    Source

    Trait implementations

    Availability

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