pub struct NapiBiStream { /* private fields */ }Expand description
A bidirectional stream pair.
Implementations§
Source§impl NapiBiStream
impl NapiBiStream
Sourcepub fn take_send(&mut self) -> Result<NapiSendStream>
pub fn take_send(&mut self) -> Result<NapiSendStream>
Take the send stream. Can only be called once.
Sourcepub fn take_recv(&mut self) -> Result<NapiRecvStream>
pub fn take_recv(&mut self) -> Result<NapiRecvStream>
Take the recv stream. Can only be called once.
Trait Implementations§
Source§impl FromNapiMutRef for NapiBiStream
impl FromNapiMutRef for NapiBiStream
Source§unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static mut Self>
Safety Read more
Source§impl FromNapiRef for NapiBiStream
impl FromNapiRef for NapiBiStream
Source§unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static Self>
unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static Self>
Safety Read more
Source§impl JavaScriptClassExt for NapiBiStream
impl JavaScriptClassExt for NapiBiStream
fn into_instance<'scope>( self, env: &'scope Env, ) -> Result<ClassInstance<'scope, Self>>
fn into_reference(self, env: Env) -> Result<Reference<Self>>
fn instance_of<'env, V: JsValue<'env>>(env: &Env, value: &V) -> Result<bool>
Source§impl ToNapiValue for NapiBiStream
impl ToNapiValue for NapiBiStream
Source§unsafe fn to_napi_value(env: napi_env, val: NapiBiStream) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: NapiBiStream) -> Result<napi_value>
Safety Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for &NapiBiStream
impl TypeName for &NapiBiStream
Source§impl TypeName for &mut NapiBiStream
impl TypeName for &mut NapiBiStream
Source§impl TypeName for NapiBiStream
impl TypeName for NapiBiStream
Source§impl ValidateNapiValue for &NapiBiStream
impl ValidateNapiValue for &NapiBiStream
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
Source§impl ValidateNapiValue for &mut NapiBiStream
impl ValidateNapiValue for &mut NapiBiStream
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 NapiBiStream
impl !RefUnwindSafe for NapiBiStream
impl Send for NapiBiStream
impl Sync for NapiBiStream
impl Unpin for NapiBiStream
impl UnsafeUnpin for NapiBiStream
impl UnwindSafe for NapiBiStream
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