#[non_exhaustive]pub enum ReclaimExecutionOutcome {
Claimed(Handle),
NotReclaimable {
execution_id: ExecutionId,
detail: String,
},
ReclaimCapExceeded {
execution_id: ExecutionId,
reclaim_count: u32,
},
GrantNotFound {
execution_id: ExecutionId,
},
}Expand description
Typed outcome of crate::engine_backend::EngineBackend::reclaim_execution
(RFC-024 §3.2).
Distinct from the wire-level ReclaimExecutionResult; this enum
is the trait-surface shape consumers match on.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Claimed(Handle)
Execution reclaimed — carries the new-attempt
crate::backend::Handle (kind = Reclaimed).
NotReclaimable
Execution is not in a reclaimable state.
ReclaimCapExceeded
max_reclaim_count exceeded; execution transitioned to
terminal_failed.
GrantNotFound
The supplied grant was not found / already consumed / expired.
Fields
§
execution_id: ExecutionIdTrait Implementations§
Source§impl Clone for ReclaimExecutionOutcome
impl Clone for ReclaimExecutionOutcome
Source§fn clone(&self) -> ReclaimExecutionOutcome
fn clone(&self) -> ReclaimExecutionOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReclaimExecutionOutcome
impl Debug for ReclaimExecutionOutcome
Source§impl PartialEq for ReclaimExecutionOutcome
impl PartialEq for ReclaimExecutionOutcome
impl Eq for ReclaimExecutionOutcome
impl StructuralPartialEq for ReclaimExecutionOutcome
Auto Trait Implementations§
impl Freeze for ReclaimExecutionOutcome
impl RefUnwindSafe for ReclaimExecutionOutcome
impl Send for ReclaimExecutionOutcome
impl Sync for ReclaimExecutionOutcome
impl Unpin for ReclaimExecutionOutcome
impl UnsafeUnpin for ReclaimExecutionOutcome
impl UnwindSafe for ReclaimExecutionOutcome
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