Enum mongodb::options::CommitQuorum [−][src]
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.
Tuple Fields of Nodes
0: u32
All data-bearing voting replica set members (default).
A simple majority of voting members.
Custom(String)
A replica set tag name.
Tuple Fields of Custom
0: String
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more