pub struct WriteConcernOptions { /* private fields */ }Expand description
Per-write wait policy. Timeout starts when the receiving node applies the update. Transport and actor admission have their own deadlines.
Implementations§
Source§impl WriteConcernOptions
impl WriteConcernOptions
Sourcepub fn builder() -> WriteConcernOptionsBuilder
pub fn builder() -> WriteConcernOptionsBuilder
Create an instance of WriteConcernOptions using the builder syntax
Source§impl WriteConcernOptions
impl WriteConcernOptions
pub fn minimum_durability(&self) -> WriteDurability
pub fn with_minimum_durability(self, durability: WriteDurability) -> Self
pub fn require_evidence(&self) -> bool
pub fn with_require_evidence(self, required: bool) -> Self
pub fn concern(&self) -> WriteConcern
pub fn timeout(&self) -> Duration
Sourcepub fn require_other_region(&self) -> bool
pub fn require_other_region(&self) -> bool
Whether success additionally requires a processed outside-region replica.
Sourcepub fn with_require_other_region(self, required: bool) -> Self
pub fn with_require_other_region(self, required: bool) -> Self
Add or clear the independent region acknowledgement requirement.
Sourcepub fn strict_acknowledgements(&self) -> bool
pub fn strict_acknowledgements(&self) -> bool
Whether an operational cap must preserve the requested count. This does not change the configured storage durability or LWW winner semantics.
Sourcepub fn with_strict_acknowledgements(self, strict: bool) -> Self
pub fn with_strict_acknowledgements(self, strict: bool) -> Self
Require or relax preservation of the requested acknowledgement count. Older peers reject an enabled constraint before applying the mutation.
pub fn validate(&self) -> Result<(), WriteConcernPolicyError>
pub fn encode(&self) -> Result<Vec<u8>, WriteConcernPolicyError>
Sourcepub fn decode(bytes: &[u8]) -> Result<Self, WriteConcernPolicyError>
pub fn decode(bytes: &[u8]) -> Result<Self, WriteConcernPolicyError>
Unknown policy fields are rejected, so an older implementation cannot silently ignore a new required acknowledgement constraint.
Trait Implementations§
Source§impl Clone for WriteConcernOptions
impl Clone for WriteConcernOptions
Source§impl Debug for WriteConcernOptions
impl Debug for WriteConcernOptions
Source§impl Default for WriteConcernOptions
impl Default for WriteConcernOptions
impl Eq for WriteConcernOptions
Source§impl PartialEq for WriteConcernOptions
impl PartialEq for WriteConcernOptions
impl StructuralPartialEq for WriteConcernOptions
Auto Trait Implementations§
impl Freeze for WriteConcernOptions
impl RefUnwindSafe for WriteConcernOptions
impl Send for WriteConcernOptions
impl Sync for WriteConcernOptions
impl Unpin for WriteConcernOptions
impl UnsafeUnpin for WriteConcernOptions
impl UnwindSafe for WriteConcernOptions
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