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