bind_udp_with_socket

Function bind_udp_with_socket 

pub async fn bind_udp_with_socket(
    socket: Socket,
) -> Result<UdpSocket, Box<dyn Error + Send + Sync>>
Expand description

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

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