Struct napi_h::JsTypeError
source · pub struct JsTypeError<S: AsRef<str> = Status>(/* private fields */);
Implementations§
source§impl<S: AsRef<str>> JsTypeError<S>
impl<S: AsRef<str>> JsTypeError<S>
sourcepub unsafe fn into_value(self, env: napi_env) -> napi_value
pub unsafe fn into_value(self, env: napi_env) -> napi_value
§Safety
This function is safety if env is not null ptr.
pub fn into_unknown(self, env: Env) -> JsUnknown
sourcepub unsafe fn throw_into(self, env: napi_env)
pub unsafe fn throw_into(self, env: napi_env)
§Safety
This function is safety if env is not null ptr.
Trait Implementations§
source§impl ToNapiValue for JsTypeError
impl ToNapiValue for JsTypeError
source§unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Safety Read more
Auto Trait Implementations§
impl<S> Freeze for JsTypeError<S>where
S: Freeze,
impl<S> RefUnwindSafe for JsTypeError<S>where
S: RefUnwindSafe,
impl<S> Send for JsTypeError<S>where
S: Send,
impl<S> Sync for JsTypeError<S>where
S: Sync,
impl<S> Unpin for JsTypeError<S>where
S: Unpin,
impl<S> UnwindSafe for JsTypeError<S>where
S: UnwindSafe,
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