[][src]Struct mongodb::common::WriteConcern

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]

pub fn new() -> WriteConcern[src]

pub fn to_bson(&self) -> Document[src]

Trait Implementations

impl Eq for WriteConcern[src]

impl Default for WriteConcern[src]

impl Clone for WriteConcern[src]

impl PartialEq<WriteConcern> for WriteConcern[src]

impl Copy for WriteConcern[src]

impl Hash for WriteConcern[src]

impl Debug for WriteConcern[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self