FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DelayAction

    struct · ferroui-xaml-interactions · v0.5.0

    struct DelayAction
    

    An action that waits for a specified duration.

    The action returns the task of the wait, which an AsyncActionGroup in sequence mode awaits before the next action.

    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<DelayAction>
    

    Returns a strong reference to this object.

    Source

    duration_property

    fn duration_property() -> &'static StyledProperty<Duration>
    

    Identifies the Duration property.

    A duration as long as the longest time span (TimeSpan.MaxValue) or longer, such as Duration::MAX, waits forever: the Timeout.InfiniteTimeSpan of the reference (minus one millisecond) is a negative time span, which is not a Duration (DEVIATIONS.md, Behaviors).

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an action.

    Source

    duration

    fn duration(self: &Self) -> Duration
    

    Gets or sets the duration to wait; Duration::MAX waits forever (see duration_property). This is a property of the object model.

    Source

    set_duration

    fn set_duration(self: &Self, value: Duration)
    

    Source

    Trait implementations

    Availability

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