Enum mungos::options::ReadConcernLevel
source · [−]#[non_exhaustive]
pub enum ReadConcernLevel {
Local,
Majority,
Linearizable,
Available,
Snapshot,
Custom(String),
}
Expand description
Specifies the level consistency and isolation properties of a given ReadCocnern
.
See the documentation here for more information about read concerns.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Local
See the specific documentation for this read concern level here.
Majority
See the specific documentation for this read concern level here.
Linearizable
See the specific documentation for this read concern level here.
Available
See the specific documentation for this read concern level here.
Snapshot
See the specific documentation for this read concern level here.
Custom(String)
Specify a custom read concern level. This is present to provide forwards compatibility with any future read concerns which may be added to new versions of MongoDB.
Trait Implementations
sourceimpl Clone for ReadConcernLevel
impl Clone for ReadConcernLevel
sourcefn clone(&self) -> ReadConcernLevel
fn clone(&self) -> ReadConcernLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ReadConcernLevel
impl Debug for ReadConcernLevel
sourceimpl<'de> Deserialize<'de> for ReadConcernLevel
impl<'de> Deserialize<'de> for ReadConcernLevel
sourcefn deserialize<D>(
deserializer: D
) -> Result<ReadConcernLevel, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<ReadConcernLevel, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<ReadConcernLevel> for ReadConcern
impl From<ReadConcernLevel> for ReadConcern
sourcefn from(level: ReadConcernLevel) -> ReadConcern
fn from(level: ReadConcernLevel) -> ReadConcern
Converts to this type from the input type.
sourceimpl PartialEq<ReadConcernLevel> for ReadConcernLevel
impl PartialEq<ReadConcernLevel> for ReadConcernLevel
sourcefn eq(&self, other: &ReadConcernLevel) -> bool
fn eq(&self, other: &ReadConcernLevel) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ReadConcernLevel) -> bool
fn ne(&self, other: &ReadConcernLevel) -> bool
This method tests for !=
.
sourceimpl Serialize for ReadConcernLevel
impl Serialize for ReadConcernLevel
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ReadConcernLevel
Auto Trait Implementations
impl RefUnwindSafe for ReadConcernLevel
impl Send for ReadConcernLevel
impl Sync for ReadConcernLevel
impl Unpin for ReadConcernLevel
impl UnwindSafe for ReadConcernLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more