#[repr(u8)]pub enum ThreadsafeFunctionCallMode {
NonBlocking = 0,
Blocking = 1,
}
Variants§
Trait Implementations§
source§impl Clone for ThreadsafeFunctionCallMode
impl Clone for ThreadsafeFunctionCallMode
source§fn clone(&self) -> ThreadsafeFunctionCallMode
fn clone(&self) -> ThreadsafeFunctionCallMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ThreadsafeFunctionCallMode
impl Debug for ThreadsafeFunctionCallMode
source§impl From<ThreadsafeFunctionCallMode> for napi_threadsafe_function_call_mode
impl From<ThreadsafeFunctionCallMode> for napi_threadsafe_function_call_mode
source§fn from(value: ThreadsafeFunctionCallMode) -> Self
fn from(value: ThreadsafeFunctionCallMode) -> Self
Converts to this type from the input type.
source§impl PartialEq for ThreadsafeFunctionCallMode
impl PartialEq for ThreadsafeFunctionCallMode
source§fn eq(&self, other: &ThreadsafeFunctionCallMode) -> bool
fn eq(&self, other: &ThreadsafeFunctionCallMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ThreadsafeFunctionCallMode
impl Eq for ThreadsafeFunctionCallMode
impl StructuralPartialEq for ThreadsafeFunctionCallMode
Auto Trait Implementations§
impl Freeze for ThreadsafeFunctionCallMode
impl RefUnwindSafe for ThreadsafeFunctionCallMode
impl Send for ThreadsafeFunctionCallMode
impl Sync for ThreadsafeFunctionCallMode
impl Unpin for ThreadsafeFunctionCallMode
impl UnwindSafe for ThreadsafeFunctionCallMode
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.