Struct mongodb::common::WriteConcern
[−]
[src]
pub struct WriteConcern {
pub w: i32,
pub w_timeout: i32,
pub j: bool,
pub fsync: bool,
}Fields
w: i32
Write replication
w_timeout: i32
Used in conjunction with 'w'. Propagation timeout in ms.
j: bool
If true, will block until write operations have been committed to journal.
fsync: bool
If true and server is not journaling, blocks until server has synced all data files to disk.
Methods
impl WriteConcern[src]
fn new() -> WriteConcern
fn to_bson(&self) -> Document
Trait Implementations
impl Debug for WriteConcern[src]
impl Default for WriteConcern[src]
fn default() -> WriteConcern
Returns the "default value" for a type. Read more
impl Clone for WriteConcern[src]
fn clone(&self) -> WriteConcern
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for WriteConcern[src]
fn eq(&self, __arg_0: &WriteConcern) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &WriteConcern) -> bool
This method tests for !=.