#[repr(transparent)]pub struct napi_task_priority(pub c_uint);Available on crate features
napi and api-12 only.Expand description
Indicates the priority of a task dispatched from native thread to ArkTS thread.
Available since API-level: 12
Tuple Fields§
§0: c_uintImplementations§
Source§impl napi_task_priority
impl napi_task_priority
Sourcepub const napi_priority_immediate: napi_task_priority
pub const napi_priority_immediate: napi_task_priority
The immediate priority tasks should be promptly processed whenever feasible.
Sourcepub const napi_priority_high: napi_task_priority
pub const napi_priority_high: napi_task_priority
The high priority tasks, as sorted by their handle time, should be prioritized over tasks with low priority.
Sourcepub const napi_priority_low: napi_task_priority
pub const napi_priority_low: napi_task_priority
The low priority tasks, as sorted by their handle time, should be processed before idle priority tasks.
Sourcepub const napi_priority_idle: napi_task_priority
pub const napi_priority_idle: napi_task_priority
The idle priority tasks should be processed immediately only if there are no other priority tasks.
Trait Implementations§
Source§impl Clone for napi_task_priority
impl Clone for napi_task_priority
Source§fn clone(&self) -> napi_task_priority
fn clone(&self) -> napi_task_priority
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for napi_task_priority
impl Debug for napi_task_priority
Source§impl Hash for napi_task_priority
impl Hash for napi_task_priority
Source§impl PartialEq for napi_task_priority
impl PartialEq for napi_task_priority
impl Copy for napi_task_priority
impl Eq for napi_task_priority
impl StructuralPartialEq for napi_task_priority
Auto Trait Implementations§
impl Freeze for napi_task_priority
impl RefUnwindSafe for napi_task_priority
impl Send for napi_task_priority
impl Sync for napi_task_priority
impl Unpin for napi_task_priority
impl UnwindSafe for napi_task_priority
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)