1 2 3 4 5 6 7 8 9 10
//! UDP helpers. akka.net: `IO/UdpManager.cs`. use std::io; use std::net::SocketAddr; use tokio::net::UdpSocket; pub async fn bind(addr: SocketAddr) -> io::Result<UdpSocket> { UdpSocket::bind(addr).await }