pub enum WriteAdmission {
Admit,
Reject,
}Expand description
Whether a write resolved at a past epoch may still commit (the migration
write gate, docs/06 §2).
A write commits only if writes are currently allowed (Phase::Cutover
blocks them) and the partition’s epoch is unchanged since the decision was
resolved. Because a partition’s epoch advances only on its own transitions,
epoch equality is a per-partition staleness check; the cutover gate covers
the one window where an up-to-epoch write must still be held.
Variants§
Admit
The write may commit: writes are open and the epoch is current.
Reject
The write must be rejected and retried: the partition advanced since the decision was resolved, or it is in the cutover window. Retryable.
Trait Implementations§
Source§impl Clone for WriteAdmission
impl Clone for WriteAdmission
Source§fn clone(&self) -> WriteAdmission
fn clone(&self) -> WriteAdmission
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 moreimpl Copy for WriteAdmission
Source§impl Debug for WriteAdmission
impl Debug for WriteAdmission
impl Eq for WriteAdmission
Source§impl PartialEq for WriteAdmission
impl PartialEq for WriteAdmission
Source§fn eq(&self, other: &WriteAdmission) -> bool
fn eq(&self, other: &WriteAdmission) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WriteAdmission
Auto Trait Implementations§
impl Freeze for WriteAdmission
impl RefUnwindSafe for WriteAdmission
impl Send for WriteAdmission
impl Sync for WriteAdmission
impl Unpin for WriteAdmission
impl UnsafeUnpin for WriteAdmission
impl UnwindSafe for WriteAdmission
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