pub struct JsError<S: AsRef<str> = Status>(/* private fields */);
Implementations§
source§impl<S: AsRef<str>> JsError<S>
impl<S: AsRef<str>> JsError<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 JsError
impl ToNapiValue for JsError
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 JsError<S>where
S: Freeze,
impl<S> RefUnwindSafe for JsError<S>where
S: RefUnwindSafe,
impl<S> Send for JsError<S>where
S: Send,
impl<S> Sync for JsError<S>where
S: Sync,
impl<S> Unpin for JsError<S>where
S: Unpin,
impl<S> UnwindSafe for JsError<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