pub enum NjError {
NapiCall(NapiStatus),
InvalidArgCount(usize, usize),
InvalidArgIndex(usize, usize),
InvalidType(String, String),
NoPlainConstructor,
Utf8Error(FromUtf8Error),
Utf8ErrorSlice(Utf8Error),
Native(napi_value),
Other(String),
}
Variants§
NapiCall(NapiStatus)
InvalidArgCount(usize, usize)
InvalidArgIndex(usize, usize)
InvalidType(String, String)
NoPlainConstructor
Utf8Error(FromUtf8Error)
Utf8ErrorSlice(Utf8Error)
Native(napi_value)
Other(String)
Implementations§
Trait Implementations§
source§impl From<FromUtf8Error> for NjError
impl From<FromUtf8Error> for NjError
source§fn from(error: FromUtf8Error) -> Self
fn from(error: FromUtf8Error) -> Self
Converts to this type from the input type.
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.
Auto Trait Implementations§
impl RefUnwindSafe for NjError
impl !Send for NjError
impl !Sync for NjError
impl Unpin for NjError
impl UnwindSafe for NjError
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