pub trait QuicSocketBinder {
// Required method
fn bind_quic(
&self,
_local_addr: SocketAddr,
_server_addr: SocketAddr,
) -> Result<Arc<dyn AsyncUdpSocket>, Error>;
}
Expand description
Create a UDP socket for QUIC usage. This trait is designed for customization.
Required Methods§
sourcefn bind_quic(
&self,
_local_addr: SocketAddr,
_server_addr: SocketAddr,
) -> Result<Arc<dyn AsyncUdpSocket>, Error>
fn bind_quic( &self, _local_addr: SocketAddr, _server_addr: SocketAddr, ) -> Result<Arc<dyn AsyncUdpSocket>, Error>
Create a UDP socket for QUIC usage.