/// Creates a new `UdpSocket` from the previously bound socket provided.
///
/// The socket given will be registered with the event loop that `handle`
/// is associated with. This function requires that `socket` has previously
/// been bound to an address to work correctly.
///
/// This can be used in conjunction with net2's `UdpBuilder` interface to
/// configure a socket before it's handed off, such as setting options like
/// `reuse_address` or binding to multiple addresses.
Creates a new `UdpSocket` from the previously bound socket provided.
The socket given will be registered with the event loop that `handle`
is associated with. This function requires that `socket` has previously
been bound to an address to work correctly.

This can be used in conjunction with net2's `UdpBuilder` interface to
configure a socket before it's handed off, such as setting options like
`reuse_address` or binding to multiple addresses.
Creates a new ` UdpSocket ` from the previously bound socket provided . The socket given will be registered with the event loop that ` handle ` is associated with . This function requires that ` socket ` has previously been bound to an address to work correctly . This can be used in conjunction with net2 ' s ` UdpBuilder ` interface to configure a socket before it ' s handed off such as setting options like ` reuse_address ` or binding to multiple addresses .
pub fn from_std(socket: net::UdpSocket,
                    handle: &Handle) -> io::Result<UdpSocket> {
        let udp = try!(mio::net::UdpSocket::from_socket(socket));
        UdpSocket::new(udp, handle)
    }
pub fn from_std ( socket : net :: UdpSocket , handle : & Handle ) -> io :: Result < UdpSocket > { let udp = try ! ( mio net UdpSocket from_socket ( socket ) ) ; UdpSocket :: new ( udp , handle ) }
Creates a new `UdpSocket` from the previously bound socket provided.
Creates a new ` UdpSocket ` from the previously bound socket provided .
socket
net::UdpSocket
handle
&Handle