#[repr(transparent)]pub struct napi_event_mode(pub c_uint);Available on crate features
napi and api-12 only.Expand description
Indicates the running mode of the native event loop in an asynchronous native thread.
Available since API-level: 12
Tuple Fields§
§0: c_uintImplementations§
Source§impl napi_event_mode
impl napi_event_mode
Sourcepub const napi_event_mode_default: napi_event_mode
pub const napi_event_mode_default: napi_event_mode
In this mode, the current asynchronous thread will be blocked and events of native event loop will be processed.
Sourcepub const napi_event_mode_nowait: napi_event_mode
pub const napi_event_mode_nowait: napi_event_mode
In this mode, the current asynchronous thread will not be blocked. If there are events in the event loop, only one event will be processed and then the event loop will stop. If there are no events in the loop, the event loop will stop immediately.
Trait Implementations§
Source§impl Clone for napi_event_mode
impl Clone for napi_event_mode
Source§fn clone(&self) -> napi_event_mode
fn clone(&self) -> napi_event_mode
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_event_mode
impl Debug for napi_event_mode
Source§impl Hash for napi_event_mode
impl Hash for napi_event_mode
Source§impl PartialEq for napi_event_mode
impl PartialEq for napi_event_mode
impl Copy for napi_event_mode
impl Eq for napi_event_mode
impl StructuralPartialEq for napi_event_mode
Auto Trait Implementations§
impl Freeze for napi_event_mode
impl RefUnwindSafe for napi_event_mode
impl Send for napi_event_mode
impl Sync for napi_event_mode
impl Unpin for napi_event_mode
impl UnwindSafe for napi_event_mode
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)