#[non_exhaustive]pub struct WriteConcernPolicy {
pub level: i32,
pub acknowledgements: u32,
pub timeout_ms: u64,
pub require_other_region: bool,
pub strict_acknowledgements: bool,
pub minimum_durability: i32,
pub require_evidence: bool,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.level: i32§acknowledgements: u32§timeout_ms: u64§require_other_region: bool§strict_acknowledgements: boolReject before apply when an operational cap would lower the requested count.
minimum_durability: i32§require_evidence: boolImplementations§
Source§impl WriteConcernPolicy
impl WriteConcernPolicy
Sourcepub fn level(&self) -> WriteConcernLevel
pub fn level(&self) -> WriteConcernLevel
Returns the enum value of level, or the default if the field is set to an invalid enum value.
Sourcepub fn set_level(&mut self, value: WriteConcernLevel)
pub fn set_level(&mut self, value: WriteConcernLevel)
Sets level to the provided enum value.
Sourcepub fn minimum_durability(&self) -> WriteDurability
pub fn minimum_durability(&self) -> WriteDurability
Returns the enum value of minimum_durability, or the default if the field is set to an invalid enum value.
Sourcepub fn set_minimum_durability(&mut self, value: WriteDurability)
pub fn set_minimum_durability(&mut self, value: WriteDurability)
Sets minimum_durability to the provided enum value.
Trait Implementations§
Source§impl Clone for WriteConcernPolicy
impl Clone for WriteConcernPolicy
impl Copy for WriteConcernPolicy
Source§impl Debug for WriteConcernPolicy
impl Debug for WriteConcernPolicy
Source§impl Default for WriteConcernPolicy
impl Default for WriteConcernPolicy
impl Eq for WriteConcernPolicy
Source§impl Hash for WriteConcernPolicy
impl Hash for WriteConcernPolicy
Source§impl Message for WriteConcernPolicy
impl Message for WriteConcernPolicy
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for WriteConcernPolicy
impl PartialEq for WriteConcernPolicy
impl StructuralPartialEq for WriteConcernPolicy
Auto Trait Implementations§
impl Freeze for WriteConcernPolicy
impl RefUnwindSafe for WriteConcernPolicy
impl Send for WriteConcernPolicy
impl Sync for WriteConcernPolicy
impl Unpin for WriteConcernPolicy
impl UnsafeUnpin for WriteConcernPolicy
impl UnwindSafe for WriteConcernPolicy
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