DispatcherPriority
struct · ferroui-base · v0.5.0
struct DispatcherPriority
Defines the priorities with which jobs can be invoked on a
Dispatcher.
Members
valueDEFAULTINPUTBACKGROUNDCONTEXT_IDLEAPPLICATION_IDLESYSTEM_IDLEINACTIVEINVALIDLOADEDUI_THREAD_RENDERAFTER_RENDERRENDERBEFORE_RENDERASYNC_RENDER_TARGET_RESIZEDATA_BINDNORMALSENDMAX_VALUEfrom_valuevalidate
value
const fn value(self: Self) -> i32
The numeric value of the priority.
DEFAULT
const DEFAULT: Self
The lowest foreground dispatcher priority.
INPUT
const INPUT: Self
The job will be processed with the same priority as input.
BACKGROUND
const BACKGROUND: Self
The job will be processed after other non-idle operations have completed.
CONTEXT_IDLE
const CONTEXT_IDLE: Self
The job will be processed after background operations have completed.
APPLICATION_IDLE
const APPLICATION_IDLE: Self
The job will be processed when the application is idle.
SYSTEM_IDLE
const SYSTEM_IDLE: Self
The job will be processed when the system is idle.
INACTIVE
const INACTIVE: Self
A dispatcher priority for jobs that shouldn't be executed yet.
INVALID
const INVALID: Self
Used internally in dispatcher code.
LOADED
const LOADED: Self
The job will be processed after layout and render but before input.
UI_THREAD_RENDER
const UI_THREAD_RENDER: Self
A special priority for platforms with a UI render timer or for forced full rasterization requests.
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.
RENDER
const RENDER: Self
The job will be processed with the same priority as render.
BEFORE_RENDER
const BEFORE_RENDER: Self
A special platform hook for jobs to be executed before the normal render cycle.
ASYNC_RENDER_TARGET_RESIZE
const ASYNC_RENDER_TARGET_RESIZE: Self
A special priority for platforms that resize the render target in asynchronous-commit mode.
DATA_BIND
const DATA_BIND: Self
The job will be processed with the same priority as data binding.
Deprecated. WPF compatibility
NORMAL
const NORMAL: Self
The job will be processed with normal priority.
SEND
const SEND: Self
The job will be processed before other asynchronous operations.
MAX_VALUE
const MAX_VALUE: Self
Maximum possible priority.
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqEqHashPartialOrdOrdDefaultTryFrom<i32>From<DispatcherPriority>Display
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.