pub enum BindingRuntimeFlavor {
CurrentThread,
MultiThread,
}Variants§
Trait Implementations§
Source§impl Clone for BindingRuntimeFlavor
impl Clone for BindingRuntimeFlavor
Source§fn clone(&self) -> BindingRuntimeFlavor
fn clone(&self) -> BindingRuntimeFlavor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BindingRuntimeFlavor
Source§impl From<BindingRuntimeFlavor> for RuntimeFlavor
impl From<BindingRuntimeFlavor> for RuntimeFlavor
Source§fn from(value: BindingRuntimeFlavor) -> Self
fn from(value: BindingRuntimeFlavor) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeFlavor> for BindingRuntimeFlavor
impl From<RuntimeFlavor> for BindingRuntimeFlavor
Source§fn from(value: RuntimeFlavor) -> Self
fn from(value: RuntimeFlavor) -> Self
Converts to this type from the input type.
Source§impl FromNapiValue for BindingRuntimeFlavor
impl FromNapiValue for BindingRuntimeFlavor
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
This function called to convert napi values to native rust values Read more
fn from_unknown(value: Unknown<'_>) -> Result<Self, Error>
Source§impl ToNapiValue for BindingRuntimeFlavor
impl ToNapiValue for BindingRuntimeFlavor
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>
This function called to convert rust values to napi values Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl ToNapiValue for &BindingRuntimeFlavor
impl ToNapiValue for &BindingRuntimeFlavor
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>
This function called to convert rust values to napi values Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl ToNapiValue for &mut BindingRuntimeFlavor
impl ToNapiValue for &mut BindingRuntimeFlavor
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>
This function called to convert rust values to napi values Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for BindingRuntimeFlavor
impl TypeName for BindingRuntimeFlavor
Source§impl ValidateNapiValue for BindingRuntimeFlavor
impl ValidateNapiValue for BindingRuntimeFlavor
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
This function called to validate whether napi value passed to rust is valid type. Read more
Auto Trait Implementations§
impl Freeze for BindingRuntimeFlavor
impl RefUnwindSafe for BindingRuntimeFlavor
impl Send for BindingRuntimeFlavor
impl Sync for BindingRuntimeFlavor
impl Unpin for BindingRuntimeFlavor
impl UnsafeUnpin for BindingRuntimeFlavor
impl UnwindSafe for BindingRuntimeFlavor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more