Struct mongodb::ClientOptions [] [src]

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.


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.


impl ClientOptions

Creates a new default options struct.

Creates a new options struct with a specified log file.

Trait Implementations

impl Default for ClientOptions

Returns the "default value" for a type. Read more