pub trait WebTransportDispatch:
Any
+ Send
+ Sync {
// Required method
fn dispatch(&self, stream: WebTransportStream);
}Expand description
Trait for receiving dispatched WebTransport streams.
Implementors are registered with WebTransportDispatcher and receive each inbound stream
via dispatch.
Required Methods§
Sourcefn dispatch(&self, stream: WebTransportStream)
fn dispatch(&self, stream: WebTransportStream)
Handle an inbound WebTransport stream.