Enum node_bindgen::core::NapiStatus
source · pub enum NapiStatus {
Show 21 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,
}
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
Trait Implementations§
source§impl Debug for NapiStatus
impl Debug for NapiStatus
source§impl From<NapiStatus> for NjError
impl From<NapiStatus> for NjError
source§fn from(status: NapiStatus) -> NjError
fn from(status: NapiStatus) -> NjError
Converts to this type from the input type.
source§impl From<u32> for NapiStatus
impl From<u32> for NapiStatus
source§fn from(status: u32) -> NapiStatus
fn from(status: u32) -> NapiStatus
Converts to this type from the input type.
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 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