pub trait WebTransportHandler:
Send
+ Sync
+ 'static {
// Required method
fn run(
&self,
web_transport_connection: WebTransportConnection,
) -> impl Future<Output = ()> + Send;
}Expand description
A handler for WebTransport sessions.
Any Fn(WebTransportConnection) -> impl Future<Output = ()> automatically implements this
trait, so you can pass a closure or async function directly to WebTransport::new.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.