Enum node_api_system::napi_status
source · [−]#[repr(u32)]
pub enum napi_status {
Show 21 variants
napi_ok,
napi_invalid_arg,
napi_object_expected,
napi_string_expected,
napi_name_expected,
napi_function_expected,
napi_number_expected,
napi_boolean_expected,
napi_array_expected,
napi_generic_failure,
napi_pending_exception,
napi_cancelled,
napi_escape_called_twice,
napi_handle_scope_mismatch,
napi_callback_scope_mismatch,
napi_queue_full,
napi_closing,
napi_bigint_expected,
napi_date_expected,
napi_arraybuffer_expected,
napi_detachable_arraybuffer_expected,
}
Variants
napi_ok
napi_invalid_arg
napi_object_expected
napi_string_expected
napi_name_expected
napi_function_expected
napi_number_expected
napi_boolean_expected
napi_array_expected
napi_generic_failure
napi_pending_exception
napi_cancelled
napi_escape_called_twice
napi_handle_scope_mismatch
napi_callback_scope_mismatch
napi_queue_full
napi_closing
napi_bigint_expected
napi_date_expected
napi_arraybuffer_expected
napi_detachable_arraybuffer_expected
Trait Implementations
sourceimpl Clone for napi_status
impl Clone for napi_status
sourcefn clone(&self) -> napi_status
fn clone(&self) -> napi_status
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for napi_status
impl Debug for napi_status
sourceimpl Hash for napi_status
impl Hash for napi_status
sourceimpl PartialEq<napi_status> for napi_status
impl PartialEq<napi_status> for napi_status
impl Copy for napi_status
impl Eq for napi_status
impl StructuralEq for napi_status
impl StructuralPartialEq for napi_status
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more