Enum mungos::options::CommitQuorum
source · [−]Expand description
The minimum number of data-bearing voting replica set members (i.e. commit quorum), including the primary, that must report a successful index build before the primary marks the indexes as ready.
For more information, see the documentation
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Nodes(u32)
A specific number of voting replica set members. When set to 0, disables quorum voting.
VotingMembers
All data-bearing voting replica set members (default).
Majority
A simple majority of voting members.
Custom(String)
A replica set tag name.
Trait Implementations
sourceimpl Clone for CommitQuorum
impl Clone for CommitQuorum
sourcefn clone(&self) -> CommitQuorum
fn clone(&self) -> CommitQuorum
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 moresourceimpl Debug for CommitQuorum
impl Debug for CommitQuorum
sourceimpl<'de> Deserialize<'de> for CommitQuorum
impl<'de> Deserialize<'de> for CommitQuorum
sourcefn deserialize<D>(
deserializer: D
) -> Result<CommitQuorum, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<CommitQuorum, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<CommitQuorum> for CommitQuorum
impl PartialEq<CommitQuorum> for CommitQuorum
sourcefn eq(&self, other: &CommitQuorum) -> bool
fn eq(&self, other: &CommitQuorum) -> bool
sourceimpl Serialize for CommitQuorum
impl Serialize for CommitQuorum
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 CommitQuorum
Auto Trait Implementations
impl RefUnwindSafe for CommitQuorum
impl Send for CommitQuorum
impl Sync for CommitQuorum
impl Unpin for CommitQuorum
impl UnwindSafe for CommitQuorum
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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