pub trait QuicSocketBinder {
// Required method
fn bind_quic(
&self,
_local_addr: SocketAddr,
_server_addr: SocketAddr,
) -> Result<Arc<dyn AsyncUdpSocket>, Error>;
}
Available on crate features
dns-over-quic
or dns-over-h3
only.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.