Skip to main content

DatagramConnectionExt

Trait DatagramConnectionExt 

Source
pub trait DatagramConnectionExt<B: Buf> {
    type SendDatagramHandler: SendDatagram<B>;
    type RecvDatagramHandler: RecvDatagram;

    // Required methods
    fn send_datagram_handler(&self) -> Self::SendDatagramHandler;
    fn recv_datagram_handler(&self) -> Self::RecvDatagramHandler;
}
Expand description

Connection Extension trait for a DatagramHandler type defined by the quic implementation

Required Associated Types§

Source

type SendDatagramHandler: SendDatagram<B>

The type of the Datagram send Handler

Source

type RecvDatagramHandler: RecvDatagram

The type of the Datagram receive Handler

Required Methods§

Source

fn send_datagram_handler(&self) -> Self::SendDatagramHandler

Get the send datagram handler

Source

fn recv_datagram_handler(&self) -> Self::RecvDatagramHandler

Get the receive datagram handler

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§