Struct napi::bindgen_prelude::JsError
source · pub struct JsError<S: AsRef<str> = Status>(_);
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.
pub fn throw(&self, env: napi_env) -> Result<()>
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