Enum nodex_api::NapiStatus
source · #[repr(u32)]pub enum NapiStatus {
Show 22 variants
Ok = 0,
InvalidArg = 1,
ObjectExpected = 2,
StringExpected = 3,
NameExpected = 4,
FunctionExpected = 5,
NumberExpected = 6,
BooleanExpected = 7,
ArrayExpected = 8,
GenericFailure = 9,
PendingException = 10,
Cancelled = 11,
EscapeCalledTwice = 12,
HandleScopeMismatch = 13,
CallbackScopeMismatch = 14,
QueueFull = 15,
Closing = 16,
BigintExpected = 17,
DateExpected = 18,
ArraybufferExpected = 19,
DetachableArraybufferExpected = 20,
WouldDeadlock = 21,
}
Expand description
napi_status
Variants§
Ok = 0
InvalidArg = 1
ObjectExpected = 2
StringExpected = 3
NameExpected = 4
FunctionExpected = 5
NumberExpected = 6
BooleanExpected = 7
ArrayExpected = 8
GenericFailure = 9
PendingException = 10
Cancelled = 11
EscapeCalledTwice = 12
HandleScopeMismatch = 13
CallbackScopeMismatch = 14
QueueFull = 15
Closing = 16
BigintExpected = 17
DateExpected = 18
ArraybufferExpected = 19
DetachableArraybufferExpected = 20
WouldDeadlock = 21
Implementations§
Trait Implementations§
source§impl Clone for NapiStatus
impl Clone for NapiStatus
source§fn clone(&self) -> NapiStatus
fn clone(&self) -> NapiStatus
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 NapiStatus
impl Debug for NapiStatus
source§impl Display for NapiStatus
impl Display for NapiStatus
source§impl Error for NapiStatus
impl Error for NapiStatus
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for NapiStatus
impl PartialEq for NapiStatus
source§fn eq(&self, other: &NapiStatus) -> bool
fn eq(&self, other: &NapiStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NapiStatus
impl Eq for NapiStatus
impl StructuralEq for NapiStatus
impl StructuralPartialEq for NapiStatus
Auto Trait Implementations§
impl RefUnwindSafe for NapiStatus
impl Send for NapiStatus
impl Sync for NapiStatus
impl Unpin for NapiStatus
impl UnwindSafe for NapiStatus
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