pub struct DispatcherPriority { /* private fields */ }Expand description
Defines the priorities with which jobs can be invoked on a
Dispatcher.
Implementations§
Source§impl DispatcherPriority
impl DispatcherPriority
Sourcepub const BACKGROUND: Self
pub const BACKGROUND: Self
The job will be processed after other non-idle operations have completed.
Sourcepub const CONTEXT_IDLE: Self
pub const CONTEXT_IDLE: Self
The job will be processed after background operations have completed.
Sourcepub const APPLICATION_IDLE: Self
pub const APPLICATION_IDLE: Self
The job will be processed when the application is idle.
Sourcepub const SYSTEM_IDLE: Self
pub const SYSTEM_IDLE: Self
The job will be processed when the system is idle.
Sourcepub const UI_THREAD_RENDER: Self
pub const UI_THREAD_RENDER: Self
A special priority for platforms with a UI render timer or for forced full rasterization requests.
Sourcepub const AFTER_RENDER: Self
pub 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.
Sourcepub const BEFORE_RENDER: Self
pub const BEFORE_RENDER: Self
A special platform hook for jobs to be executed before the normal render cycle.
Sourcepub const ASYNC_RENDER_TARGET_RESIZE: Self
pub const ASYNC_RENDER_TARGET_RESIZE: Self
A special priority for platforms that resize the render target in asynchronous-commit mode.
Sourcepub const DATA_BIND: Self
👎Deprecated: WPF compatibility
pub const DATA_BIND: Self
WPF compatibility
The job will be processed with the same priority as data binding.
Sourcepub fn from_value(value: i32) -> Self
pub 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.
Sourcepub fn validate(priority: DispatcherPriority, parameter_name: &str)
pub 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§
Source§impl Clone for DispatcherPriority
impl Clone for DispatcherPriority
impl Copy for DispatcherPriority
Source§impl Debug for DispatcherPriority
impl Debug for DispatcherPriority
Source§impl Default for DispatcherPriority
impl Default for DispatcherPriority
Source§impl Display for DispatcherPriority
impl Display for DispatcherPriority
impl Eq for DispatcherPriority
Source§impl From<DispatcherPriority> for i32
impl From<DispatcherPriority> for i32
Source§fn from(priority: DispatcherPriority) -> i32
fn from(priority: DispatcherPriority) -> i32
Source§impl Hash for DispatcherPriority
impl Hash for DispatcherPriority
Source§impl Ord for DispatcherPriority
impl Ord for DispatcherPriority
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DispatcherPriority
impl PartialEq for DispatcherPriority
Source§impl PartialOrd for DispatcherPriority
impl PartialOrd for DispatcherPriority
impl StructuralPartialEq for DispatcherPriority
Auto Trait Implementations§
impl Freeze for DispatcherPriority
impl RefUnwindSafe for DispatcherPriority
impl Send for DispatcherPriority
impl Sync for DispatcherPriority
impl Unpin for DispatcherPriority
impl UnsafeUnpin for DispatcherPriority
impl UnwindSafe for DispatcherPriority
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more