pub struct ExternalRef<T: 'static> { /* private fields */ }Expand description
ExternalRef is a reference to an External object
Implementations§
Trait Implementations§
Source§impl<T: 'static> Deref for ExternalRef<T>
impl<T: 'static> Deref for ExternalRef<T>
Source§impl<T: 'static> DerefMut for ExternalRef<T>
impl<T: 'static> DerefMut for ExternalRef<T>
Source§impl<T: 'static> Drop for ExternalRef<T>
impl<T: 'static> Drop for ExternalRef<T>
Source§impl<T: 'static> FromNapiValue for ExternalRef<T>
impl<T: 'static> FromNapiValue for ExternalRef<T>
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>
Safety Read more
fn from_unknown(value: Unknown<'_>) -> Result<Self>
Source§impl<T: 'static> ToNapiValue for &ExternalRef<T>
impl<T: 'static> ToNapiValue for &ExternalRef<T>
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
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>>
Source§impl<T: 'static> ToNapiValue for ExternalRef<T>
impl<T: 'static> ToNapiValue for ExternalRef<T>
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
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>>
Source§impl<T: 'static> TypeName for ExternalRef<T>
impl<T: 'static> TypeName for ExternalRef<T>
Source§impl<T: 'static> ValidateNapiValue for ExternalRef<T>
impl<T: 'static> ValidateNapiValue for ExternalRef<T>
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>
Safety Read more
impl<T: Sync + 'static> Sync for ExternalRef<T>
Auto Trait Implementations§
impl<T> Freeze for ExternalRef<T>
impl<T> RefUnwindSafe for ExternalRef<T>where
T: RefUnwindSafe,
impl<T> !Send for ExternalRef<T>
impl<T> Unpin for ExternalRef<T>
impl<T> !UnwindSafe for ExternalRef<T>
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