Struct std::io::net::udp::UdpStream[src]
pub struct UdpStream {
// some fields omitted
}A type that allows convenient usage of a UDP stream connected to one
address via the Reader and Writer traits.
Methods
impl UdpStream
fn as_socket<T>(&mut self, f: |&mut UdpSocket| -> T) -> T
Allows access to the underlying UDP socket owned by this stream. This is useful to, for example, use the socket to send data to hosts other than the one that this stream is connected to.
fn disconnect(self) -> UdpSocket
Consumes this UDP stream and returns out the underlying socket.