bind_udp

Function bind_udp 

pub async fn bind_udp<I>(
    interface: I,
) -> Result<UdpSocket, Box<dyn Error + Send + Sync>>
where I: TryInto<Interface>, <I as TryInto<Interface>>::Error: Into<Box<dyn Error + Send + Sync>>,
Available on crate feature udp only.
Expand description

Creates a new UdpSocket, which will be bound to the specified Interface.

The returned socket is ready for accepting connections and connecting to others.