#[non_exhaustive]pub enum AcquireReason {
Create,
Reclaimed,
Expired,
Reassigned,
}Expand description
Why a split lease was acquired (the reason label on
spate_coordination_acquisitions_total).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Create
First claim of a runnable split no one has held.
Reclaimed
Fast reclaim of a split this worker (by stable id) still held.
Expired
Takeover of a split whose lease expired unrenewed.
Reassigned
Claim of a split whose previous owner released it cleanly — a
drained revocation, or a shutdown/scale-down hand-back. Either way
the owner cleared the record before letting go, so the resume point
covers everything it emitted and the claim is replay-free; a drained
revocation additionally counts RevocationOutcome::Drained on the
releasing side. Contrast Expired, where
a dead owner’s uncommitted tail replays.
One clean release counts here with no matching drained: the drain
left behind by a RevocationOutcome::Cancelled revocation, which
hands the split back to the worker that already had it. Counting it
drained would claim a move that never happened.
The two clean cases are one reason on purpose: a claiming worker cannot tell them apart (both present as a cleared owner and a vanished lease), and a label it cannot populate correctly is a series that reads zero forever.
Trait Implementations§
Source§impl Clone for AcquireReason
impl Clone for AcquireReason
Source§fn clone(&self) -> AcquireReason
fn clone(&self) -> AcquireReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AcquireReason
Source§impl Debug for AcquireReason
impl Debug for AcquireReason
impl Eq for AcquireReason
Source§impl PartialEq for AcquireReason
impl PartialEq for AcquireReason
impl StructuralPartialEq for AcquireReason
Auto Trait Implementations§
impl Freeze for AcquireReason
impl RefUnwindSafe for AcquireReason
impl Send for AcquireReason
impl Sync for AcquireReason
impl Unpin for AcquireReason
impl UnsafeUnpin for AcquireReason
impl UnwindSafe for AcquireReason
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.