Skip to main content

WebTransportDispatch

Trait WebTransportDispatch 

Source
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§

Source

fn dispatch(&self, stream: WebTransportStream)

Handle an inbound WebTransport stream.

Implementors§