Enum mongodb::options::Acknowledgment
source · [−]Expand description
The type of the w
field in a WriteConcern
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
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.
Majority
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.
Trait Implementations
sourceimpl Clone for Acknowledgment
impl Clone for Acknowledgment
sourcefn clone(&self) -> Acknowledgment
fn clone(&self) -> Acknowledgment
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 Acknowledgment
impl Debug for Acknowledgment
sourceimpl<'de> Deserialize<'de> for Acknowledgment
impl<'de> Deserialize<'de> for Acknowledgment
sourcefn 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
sourceimpl From<String> for Acknowledgment
impl From<String> for Acknowledgment
sourceimpl From<u32> for Acknowledgment
impl From<u32> for Acknowledgment
sourceimpl PartialEq<Acknowledgment> for Acknowledgment
impl PartialEq<Acknowledgment> for Acknowledgment
sourcefn eq(&self, other: &Acknowledgment) -> bool
fn eq(&self, other: &Acknowledgment) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Acknowledgment) -> bool
fn ne(&self, other: &Acknowledgment) -> bool
This method tests for !=
.
sourceimpl Serialize for Acknowledgment
impl Serialize for Acknowledgment
impl StructuralPartialEq for Acknowledgment
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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more