FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DispatcherPriority

    struct · ferroui-base · v0.5.0

    struct DispatcherPriority
    

    Defines the priorities with which jobs can be invoked on a Dispatcher.

    View source

    Members

    value

    const fn value(self: Self) -> i32
    

    The numeric value of the priority.

    Source

    DEFAULT

    const DEFAULT: Self
    

    The lowest foreground dispatcher priority.

    Source

    INPUT

    const INPUT: Self
    

    The job will be processed with the same priority as input.

    Source

    BACKGROUND

    const BACKGROUND: Self
    

    The job will be processed after other non-idle operations have completed.

    Source

    CONTEXT_IDLE

    const CONTEXT_IDLE: Self
    

    The job will be processed after background operations have completed.

    Source

    APPLICATION_IDLE

    const APPLICATION_IDLE: Self
    

    The job will be processed when the application is idle.

    Source

    SYSTEM_IDLE

    const SYSTEM_IDLE: Self
    

    The job will be processed when the system is idle.

    Source

    INACTIVE

    const INACTIVE: Self
    

    A dispatcher priority for jobs that shouldn't be executed yet.

    Source

    INVALID

    const INVALID: Self
    

    Used internally in dispatcher code.

    Source

    LOADED

    const LOADED: Self
    

    The job will be processed after layout and render but before input.

    Source

    UI_THREAD_RENDER

    const UI_THREAD_RENDER: Self
    

    A special priority for platforms with a UI render timer or for forced full rasterization requests.

    Source

    AFTER_RENDER

    const AFTER_RENDER: Self
    

    A special priority to synchronize native control host positions, IME, etc. Renderer results have to be reported before any user code and most of the system input callbacks.

    Source

    RENDER

    const RENDER: Self
    

    The job will be processed with the same priority as render.

    Source

    BEFORE_RENDER

    const BEFORE_RENDER: Self
    

    A special platform hook for jobs to be executed before the normal render cycle.

    Source

    ASYNC_RENDER_TARGET_RESIZE

    const ASYNC_RENDER_TARGET_RESIZE: Self
    

    A special priority for platforms that resize the render target in asynchronous-commit mode.

    Source

    DATA_BIND

    const DATA_BIND: Self
    

    The job will be processed with the same priority as data binding.

    Deprecated. WPF compatibility

    Source

    NORMAL

    const NORMAL: Self
    

    The job will be processed with normal priority.

    Source

    SEND

    const SEND: Self
    

    The job will be processed before other asynchronous operations.

    Source

    MAX_VALUE

    const MAX_VALUE: Self
    

    Maximum possible priority.

    Source

    from_value

    fn from_value(value: i32) -> Self
    

    Creates a priority from its numeric value.

    Panics

    Panics when value is outside the valid range; use TryFrom<i32> for untrusted input.

    Source

    validate

    fn validate(priority: DispatcherPriority, parameter_name: &str)
    

    Verifies that priority can be used to queue work.

    Panics

    Panics when the priority is outside INACTIVE..=MAX_VALUE.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ToString
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • PartialOrd
    • Ord
    • Default
    • TryFrom<i32>
    • From<DispatcherPriority>
    • Display

    Availability

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