pub struct UnknownReturnValue;
Expand description
This is a placeholder type that is used to indicate that the return value of a threadsafe function is unknown. Use this type when you don’t care about the return value of a threadsafe function.
And you can’t get the value of it as well because it’s just a placeholder.
Trait Implementations§
Source§impl FromNapiValue for UnknownReturnValue
impl FromNapiValue for UnknownReturnValue
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 TypeName for UnknownReturnValue
impl TypeName for UnknownReturnValue
Source§impl ValidateNapiValue for UnknownReturnValue
impl ValidateNapiValue for UnknownReturnValue
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
Auto Trait Implementations§
impl Freeze for UnknownReturnValue
impl RefUnwindSafe for UnknownReturnValue
impl Send for UnknownReturnValue
impl Sync for UnknownReturnValue
impl Unpin for UnknownReturnValue
impl UnwindSafe for UnknownReturnValue
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