Skip to main content

QuicPeekRoute

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>>> + Send
where Socket: DatagramSocket,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl<O> QuicPeekRoute<O> for !
where O: Send + 'static,

§

async fn serve<Socket>( self, _: PrefixedDatagramSocket<Socket>, ) -> Result<O, Box<dyn Error + Send + Sync>>
where Socket: DatagramSocket,

Implementors§