pub enum ReadConcern {
Local,
Majority,
Linearizable,
Snapshot,
Available,
}Expand description
MongoDB read concern level.
Variants§
Local
Read from local data (fastest, may be stale).
Majority
Read data committed to majority of nodes.
Linearizable
Linearizable reads (strongest, slowest).
Snapshot
Read data available at query start.
Available
Read available data (may return orphaned docs).
Implementations§
Trait Implementations§
Source§impl Clone for ReadConcern
impl Clone for ReadConcern
Source§fn clone(&self) -> ReadConcern
fn clone(&self) -> ReadConcern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadConcern
impl Debug for ReadConcern
Source§impl<'de> Deserialize<'de> for ReadConcern
impl<'de> Deserialize<'de> for ReadConcern
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReadConcern
impl PartialEq for ReadConcern
Source§impl Serialize for ReadConcern
impl Serialize for ReadConcern
impl Copy for ReadConcern
impl Eq for ReadConcern
impl StructuralPartialEq for ReadConcern
Auto Trait Implementations§
impl Freeze for ReadConcern
impl RefUnwindSafe for ReadConcern
impl Send for ReadConcern
impl Sync for ReadConcern
impl Unpin for ReadConcern
impl UnwindSafe for ReadConcern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more