Type Alias napi_h::bindgen_prelude::Result

source ·
pub type Result<T, S = Status> = Result<T, Error<S>>;

Aliased Type§

enum Result<T, S = Status> {
    Ok(T),
    Err(Error<S>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error<S>)

Contains the error value

Trait Implementations§

source§

impl<T> ToNapiValue for Result<T>
where T: ToNapiValue,

source§

unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>

Safety Read more