Struct mongodb::pool::PooledStream [] [src]

pub struct PooledStream {
    // some fields omitted
}

Holds an available socket, with logic to return the socket to the connection pool when dropped.

Methods

impl PooledStream
[src]

fn get_socket(&mut self) -> &mut BufStream<TcpStream>

Returns a reference to the socket.

Trait Implementations

impl Drop for PooledStream
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more