pub struct WriteConcern(/* private fields */);Expand description
A write concern label.
Implementations§
Source§impl WriteConcern
impl WriteConcern
Sourcepub const fn new(level: ConsistencyLevel) -> WriteConcern
pub const fn new(level: ConsistencyLevel) -> WriteConcern
Creates a write concern.
Sourcepub const fn level(self) -> ConsistencyLevel
pub const fn level(self) -> ConsistencyLevel
Returns the consistency level.
Trait Implementations§
Source§impl Clone for WriteConcern
impl Clone for WriteConcern
Source§fn clone(&self) -> WriteConcern
fn clone(&self) -> WriteConcern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WriteConcern
impl Debug for WriteConcern
Source§impl Default for WriteConcern
impl Default for WriteConcern
Source§fn default() -> WriteConcern
fn default() -> WriteConcern
Returns the “default value” for a type. Read more
Source§impl Display for WriteConcern
impl Display for WriteConcern
Source§impl Hash for WriteConcern
impl Hash for WriteConcern
Source§impl Ord for WriteConcern
impl Ord for WriteConcern
Source§fn cmp(&self, other: &WriteConcern) -> Ordering
fn cmp(&self, other: &WriteConcern) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WriteConcern
impl PartialEq for WriteConcern
Source§fn eq(&self, other: &WriteConcern) -> bool
fn eq(&self, other: &WriteConcern) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WriteConcern
impl PartialOrd for WriteConcern
impl Copy for WriteConcern
impl Eq for WriteConcern
impl StructuralPartialEq for WriteConcern
Auto Trait Implementations§
impl Freeze for WriteConcern
impl RefUnwindSafe for WriteConcern
impl Send for WriteConcern
impl Sync for WriteConcern
impl Unpin for WriteConcern
impl UnsafeUnpin for WriteConcern
impl UnwindSafe for WriteConcern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more