[−][src]Struct mongodb_cwal::ClientOptions
Configuration options for a client.
Fields
pool_size: Option<usize>
Size of the inner connection pool of the client None means default, Default is 5
idle_connection_timeout: Option<Duration>
Timeout for an idle connection inside the connection pool, None means Default, Default is 30 sec
log_file: Option<String>
File path for command logging.
read_preference: Option<ReadPreference>
Client-level server selection preferences for read operations.
write_concern: Option<WriteConcern>
Client-level write guarantees when reporting a write success.
heartbeat_frequency_ms: u32
Frequency of server monitor updates; default 10000 ms.
server_selection_timeout_ms: i64
Timeout for selecting an appropriate server for operations; default 30000 ms.
local_threshold_ms: i64
The size of the latency window for selecting suitable servers; default 15 ms.
stream_connector: StreamConnector
Options for how to connect to the server.
Methods
impl ClientOptions
[src]
pub fn new() -> ClientOptions
[src]
Creates a new default options struct.
pub fn with_log_file(file: &str) -> ClientOptions
[src]
Creates a new options struct with a specified log file.
Trait Implementations
impl Clone for ClientOptions
[src]
fn clone(&self) -> ClientOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ClientOptions
[src]
fn default() -> ClientOptions
[src]
impl Debug for ClientOptions
[src]
Auto Trait Implementations
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl UnwindSafe for ClientOptions
impl RefUnwindSafe for ClientOptions
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,