pub struct NapiRequest { /* private fields */ }Expand description
A pending WebTransport session request from a client.
Implementations§
Trait Implementations§
Source§impl FromNapiMutRef for NapiRequest
impl FromNapiMutRef for NapiRequest
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 NapiRequest
impl FromNapiRef for NapiRequest
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 NapiRequest
impl JavaScriptClassExt for NapiRequest
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 NapiRequest
impl ToNapiValue for NapiRequest
Source§unsafe fn to_napi_value(env: napi_env, val: NapiRequest) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: NapiRequest) -> Result<napi_value>
Safety Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for &NapiRequest
impl TypeName for &NapiRequest
Source§impl TypeName for &mut NapiRequest
impl TypeName for &mut NapiRequest
Source§impl TypeName for NapiRequest
impl TypeName for NapiRequest
Source§impl ValidateNapiValue for &NapiRequest
impl ValidateNapiValue for &NapiRequest
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 NapiRequest
impl ValidateNapiValue for &mut NapiRequest
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 NapiRequest
impl !RefUnwindSafe for NapiRequest
impl Send for NapiRequest
impl Sync for NapiRequest
impl Unpin for NapiRequest
impl UnsafeUnpin for NapiRequest
impl UnwindSafe for NapiRequest
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