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§

source

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.

Implementors§