#[repr(u32)]pub enum napi_status {
Show 23 variants
napi_ok = 0,
napi_invalid_arg = 1,
napi_object_expected = 2,
napi_string_expected = 3,
napi_name_expected = 4,
napi_function_expected = 5,
napi_number_expected = 6,
napi_boolean_expected = 7,
napi_array_expected = 8,
napi_generic_failure = 9,
napi_pending_exception = 10,
napi_cancelled = 11,
napi_escape_called_twice = 12,
napi_handle_scope_mismatch = 13,
napi_callback_scope_mismatch = 14,
napi_queue_full = 15,
napi_closing = 16,
napi_bigint_expected = 17,
napi_date_expected = 18,
napi_arraybuffer_expected = 19,
napi_detachable_arraybuffer_expected = 20,
napi_would_deadlock = 21,
napi_no_external_buffers_allowed = 22,
}
Variants§
napi_ok = 0
napi_invalid_arg = 1
napi_object_expected = 2
napi_string_expected = 3
napi_name_expected = 4
napi_function_expected = 5
napi_number_expected = 6
napi_boolean_expected = 7
napi_array_expected = 8
napi_generic_failure = 9
napi_pending_exception = 10
napi_cancelled = 11
napi_escape_called_twice = 12
napi_handle_scope_mismatch = 13
napi_callback_scope_mismatch = 14
napi_queue_full = 15
napi_closing = 16
napi_bigint_expected = 17
napi_date_expected = 18
napi_arraybuffer_expected = 19
napi_detachable_arraybuffer_expected = 20
napi_would_deadlock = 21
napi_no_external_buffers_allowed = 22
Trait Implementations§
Source§impl Clone for napi_status
impl Clone for napi_status
Source§fn clone(&self) -> napi_status
fn clone(&self) -> napi_status
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for napi_status
impl Debug for napi_status
Source§impl Hash for napi_status
impl Hash for napi_status
Source§impl PartialEq for napi_status
impl PartialEq for napi_status
impl Copy for napi_status
impl Eq for napi_status
impl StructuralPartialEq for napi_status
Auto Trait Implementations§
impl Freeze for napi_status
impl RefUnwindSafe for napi_status
impl Send for napi_status
impl Sync for napi_status
impl Unpin for napi_status
impl UnwindSafe for napi_status
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