pub enum Error {
Show 21 variants
InvalidArg,
ObjectExpected,
StringExpected,
NameExpected,
FunctionExpected,
NumberExpected,
BooleanExpected,
ArrayExpected,
GenericFailure,
PendingException,
Cancelled,
EscapeCalledTwice,
HandleScopeMismatch,
CallbackScopeMismatch,
QueueFull,
Closing,
BigIntExpected,
DateExpected,
ArrayBufferExpected,
DetachableArraybufferExpected,
WouldDeadlock,
}
Variants§
InvalidArg
ObjectExpected
StringExpected
NameExpected
FunctionExpected
NumberExpected
BooleanExpected
ArrayExpected
GenericFailure
PendingException
Cancelled
EscapeCalledTwice
HandleScopeMismatch
CallbackScopeMismatch
QueueFull
Closing
BigIntExpected
DateExpected
ArrayBufferExpected
DetachableArraybufferExpected
WouldDeadlock
Trait Implementations§
source§impl From<Error> for napi_status
impl From<Error> for napi_status
source§impl Into<Error> for napi_status
impl Into<Error> for napi_status
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.