Trait QuicPeekRoute
pub trait QuicPeekRoute<O>: Send + 'static {
// Required method
fn serve<Socket>(
self,
socket: PrefixedDatagramSocket<Socket>,
) -> impl Future<Output = Result<O, Box<dyn Error + Send + Sync>>> + Send
where Socket: DatagramSocket;
}Available on crate features
quic and std only.Expand description
Owns the selected endpoint/path decision until the association ends.
Required Methods§
fn serve<Socket>(
self,
socket: PrefixedDatagramSocket<Socket>,
) -> impl Future<Output = Result<O, Box<dyn Error + Send + Sync>>> + Sendwhere
Socket: DatagramSocket,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".