Enum nj_core::NapiStatus
source · pub enum NapiStatus {
Show 21 variants
Ok,
InvalidArg,
ObjectExpected,
StringExpected,
NameExpected,
FunctionExpected,
NumberExpected,
BooleanExpected,
ArrayExpected,
GenericFailure,
PendingException,
Cancelled,
EscapeCalledTwice,
HandleScopeMismatch,
CallbackScopeMismatch,
QueueFull,
Closing,
BigintExpected,
DateExpected,
ArraybufferExpected,
DetachableArrayBufferExpected,
}
Variants§
Ok
InvalidArg
ObjectExpected
StringExpected
NameExpected
FunctionExpected
NumberExpected
BooleanExpected
ArrayExpected
GenericFailure
PendingException
Cancelled
EscapeCalledTwice
HandleScopeMismatch
CallbackScopeMismatch
QueueFull
Closing
BigintExpected
DateExpected
ArraybufferExpected
DetachableArrayBufferExpected
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) -> Self
fn from(status: NapiStatus) -> Self
Converts to this type from the input type.
source§impl From<u32> for NapiStatus
impl From<u32> for NapiStatus
source§fn from(status: napi_status) -> Self
fn from(status: napi_status) -> Self
Converts to this type from the input type.
source§impl PartialEq<NapiStatus> for NapiStatus
impl PartialEq<NapiStatus> 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