Skip to main content

WebTransportHandler

Trait WebTransportHandler 

Source
pub trait WebTransportHandler: Send + Sync {
    // Required method
    fn handle_session<'life0, 'async_trait>(
        &'life0 self,
        session: WebTransportSession<Connection, Bytes>,
        ctx: Context,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn handle_session<'life0, 'async_trait>( &'life0 self, session: WebTransportSession<Connection, Bytes>, ctx: Context, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

impl<T> WebTransportHandler for T
where T: Server<Error = Error> + Send + Sync + Clone + 'static,