Enum mongodb::options::Acknowledgment [−][src]
Expand description
The type of the w
field in a WriteConcern
.
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)
Requires acknowledgement that the write has reached the specified number of nodes.
Note: specifying 0 here indicates that the write concern is unacknowledged, which is currently unsupported and will result in an error during operation execution.
Tuple Fields of Nodes
0: u32
Requires acknowledgement that the write has reached the majority of nodes.
Custom(String)
Requires acknowledgement according to the given custom write concern. See here for more information.
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 Acknowledgment
impl Send for Acknowledgment
impl Sync for Acknowledgment
impl Unpin for Acknowledgment
impl UnwindSafe for Acknowledgment
Blanket Implementations
Mutably borrows from an owned value. Read more