#[non_exhaustive]pub enum HandleKind {
Fresh,
Resumed,
Suspended,
Reclaimed,
}Expand description
Lifecycle kind carried inside a Handle. Backends validate kind
on entry to each op and return EngineError::State on mismatch.
Replaces round-1’s compile-time Handle / ResumeHandle /
SuspendToken type split (RFC-012 §4.1).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Fresh
Fresh claim — returned by claim / claim_from_grant.
Resumed
Resumed from resume grant — returned by claim_from_resume_grant
(renamed from claim_from_reclaim per RFC-024 PR-B+C).
Suspended
Suspended — returned by suspend. Terminal for the lease;
resumption mints a new Handle via claim_from_resume_grant.
Reclaimed
Reclaimed from a lease-reclaim grant — returned by the new
reclaim_execution trait method (RFC-024). Distinct from
HandleKind::Resumed (suspend/resume path) and
HandleKind::Fresh (first claim). The backing lifecycle
creates a new attempt row and bumps the reclaim counter.
Trait Implementations§
Source§impl Clone for HandleKind
impl Clone for HandleKind
Source§fn clone(&self) -> HandleKind
fn clone(&self) -> HandleKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more