Trait trust_dns_proto::udp::QuicLocalAddr
source · pub trait QuicLocalAddr {
// Required method
fn local_addr(&self) -> Result<SocketAddr>;
}
Expand description
To implement quinn::AsyncUdpSocket, we need our custom socket capable of getting local address.
Required Methods§
sourcefn local_addr(&self) -> Result<SocketAddr>
fn local_addr(&self) -> Result<SocketAddr>
Get local address
Implementations on Foreign Types§
source§impl QuicLocalAddr for UdpSocket
Available on crate feature tokio-runtime
only.
impl QuicLocalAddr for UdpSocket
Available on crate feature
tokio-runtime
only.