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

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]

Performs copy-assignment from source. Read more

impl Debug for ConnectionPool
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

impl<T> Same for T

Should always be Self