pub struct JsError(_);
Implementations
sourceimpl JsError
impl JsError
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.
pub fn throw(&self, env: napi_env) -> Result<()>
Trait Implementations
sourceimpl ToNapiValue for JsError
impl ToNapiValue for JsError
sourceunsafe 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 RefUnwindSafe for JsError
impl Send for JsError
impl Sync for JsError
impl Unpin for JsError
impl UnwindSafe for JsError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more