Struct mongodb::pool::ConnectionPool[][src]

pub struct ConnectionPool {
    pub host: Host,
    // some fields omitted
}

Handles threaded connections to a MongoDB server.

Fields

The connection host.

Methods

impl ConnectionPool
[src]

Returns a connection pool with a default size.

Returns a connection pool with a specified capped size.

Sets the maximum number of open connections.

Attempts to acquire a connected socket. If none are available and the pool has not reached its maximum size, a new socket will connect. Otherwise, the function will block until a socket is returned to the pool.

Trait Implementations

impl Clone for ConnectionPool
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations