pub struct UdpListener { /* private fields */ }
Implementations§
Source§impl UdpListener
impl UdpListener
pub async fn bind<A: ToSocketAddrs>(addr: A) -> Result<UdpListener>
pub fn from_tokio(udp: UdpSocket) -> Result<UdpListener>
pub fn from_std(socket: UdpSocket) -> Result<UdpListener>
pub async fn next(&mut self) -> Result<UdpStream>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UdpListener
impl RefUnwindSafe for UdpListener
impl Send for UdpListener
impl Sync for UdpListener
impl Unpin for UdpListener
impl UnwindSafe for UdpListener
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more