pub struct ReadConcern(/* private fields */);Expand description
A read concern label.
Implementations§
Source§impl ReadConcern
impl ReadConcern
Sourcepub const fn new(level: ConsistencyLevel) -> ReadConcern
pub const fn new(level: ConsistencyLevel) -> ReadConcern
Creates a read concern.
Sourcepub const fn level(self) -> ConsistencyLevel
pub const fn level(self) -> ConsistencyLevel
Returns the consistency level.
Trait Implementations§
Source§impl Clone for ReadConcern
impl Clone for ReadConcern
Source§fn clone(&self) -> ReadConcern
fn clone(&self) -> ReadConcern
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 ReadConcern
impl Debug for ReadConcern
Source§impl Default for ReadConcern
impl Default for ReadConcern
Source§fn default() -> ReadConcern
fn default() -> ReadConcern
Returns the “default value” for a type. Read more
Source§impl Display for ReadConcern
impl Display for ReadConcern
Source§impl Hash for ReadConcern
impl Hash for ReadConcern
Source§impl Ord for ReadConcern
impl Ord for ReadConcern
Source§fn cmp(&self, other: &ReadConcern) -> Ordering
fn cmp(&self, other: &ReadConcern) -> 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 ReadConcern
impl PartialEq for ReadConcern
Source§fn eq(&self, other: &ReadConcern) -> bool
fn eq(&self, other: &ReadConcern) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ReadConcern
impl PartialOrd for ReadConcern
impl Copy for ReadConcern
impl Eq for ReadConcern
impl StructuralPartialEq for ReadConcern
Auto Trait Implementations§
impl Freeze for ReadConcern
impl RefUnwindSafe for ReadConcern
impl Send for ReadConcern
impl Sync for ReadConcern
impl Unpin for ReadConcern
impl UnsafeUnpin for ReadConcern
impl UnwindSafe for ReadConcern
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