pub enum AckPolicy {
LocalDurable,
ReplicaCount(ReplicaCount),
AllInSyncSet,
}Expand description
The explicit durability condition requested by a synchronous append.
Variants§
LocalDurable
Require only the local durable watermark.
ReplicaCount(ReplicaCount)
Require the local leader and the configured number of unique in-sync members.
AllInSyncSet
Require the local leader and every member of the current sync-state set.
Implementations§
Source§impl AckPolicy
impl AckPolicy
Sourcepub fn try_from_legacy(
value: i32,
all_in_sync_state_set: i32,
) -> Result<Self, StoreContractViolation>
pub fn try_from_legacy( value: i32, all_in_sync_state_set: i32, ) -> Result<Self, StoreContractViolation>
Converts a legacy ACK count or sentinel at a wire/configuration boundary.
§Errors
Returns StoreContractViolation::HaInvalidAckPolicy for zero, negative values other than
all_in_sync_state_set, or values that cannot be represented as usize.
Trait Implementations§
impl Copy for AckPolicy
impl Eq for AckPolicy
impl StructuralPartialEq for AckPolicy
Auto Trait Implementations§
impl Freeze for AckPolicy
impl RefUnwindSafe for AckPolicy
impl Send for AckPolicy
impl Sync for AckPolicy
impl Unpin for AckPolicy
impl UnsafeUnpin for AckPolicy
impl UnwindSafe for AckPolicy
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