[][src]Struct mongodb::ClientOptions

pub struct ClientOptions {
    pub log_file: Option<String>,
    pub read_preference: Option<ReadPreference>,
    pub write_concern: Option<WriteConcern>,
    pub heartbeat_frequency_ms: u32,
    pub server_selection_timeout_ms: i64,
    pub local_threshold_ms: i64,
    pub stream_connector: StreamConnector,
}

Configuration options for a client.

Fields

File path for command logging.

Client-level server selection preferences for read operations.

Client-level write guarantees when reporting a write success.

Frequency of server monitor updates; default 10000 ms.

Timeout for selecting an appropriate server for operations; default 30000 ms.

The size of the latency window for selecting suitable servers; default 15 ms.

Options for how to connect to the server.

Methods

impl ClientOptions
[src]

Creates a new default options struct.

Creates a new options struct with a specified log file.

Trait Implementations

impl Default for ClientOptions
[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, 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, 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> BorrowMut for T where
    T: ?Sized
[src]

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

impl<T> Same for T

Should always be Self