pub struct JsError(/* private fields */);
Implementations§
Source§impl 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.
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: &Env) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsError
impl RefUnwindSafe for JsError
impl Send for JsError
impl Sync for JsError
impl Unpin for JsError
impl UnwindSafe for JsError
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