1 #![cfg(not(target_os = "wasi"))] 2 use std::io; 3 use std::net::{self, SocketAddr}; 4 bind(_: SocketAddr) -> io::Result<net::UdpSocket>5pub fn bind(_: SocketAddr) -> io::Result<net::UdpSocket> { 6 os_required!() 7 } 8 only_v6(_: &net::UdpSocket) -> io::Result<bool>9pub(crate) fn only_v6(_: &net::UdpSocket) -> io::Result<bool> { 10 os_required!() 11 } 12