#[non_exhaustive]pub enum IssueReclaimGrantOutcome {
Granted(ReclaimGrant),
NotReclaimable {
execution_id: ExecutionId,
detail: String,
},
ReclaimCapExceeded {
execution_id: ExecutionId,
reclaim_count: u32,
},
}Expand description
Typed outcome of crate::engine_backend::EngineBackend::issue_reclaim_grant
(RFC-024 §3.2).
Construction surface: backends produce variants; consumers match
on variants. No ::new() — variants ARE the surface.
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.
Granted(ReclaimGrant)
Grant issued — hand the carried ReclaimGrant to
crate::engine_backend::EngineBackend::reclaim_execution.
NotReclaimable
Execution is not in a reclaimable state (not
lease_expired_reclaimable / lease_revoked).
ReclaimCapExceeded
max_reclaim_count exceeded; execution transitioned to
terminal_failed by the backend primitive.
Trait Implementations§
Source§impl Clone for IssueReclaimGrantOutcome
impl Clone for IssueReclaimGrantOutcome
Source§fn clone(&self) -> IssueReclaimGrantOutcome
fn clone(&self) -> IssueReclaimGrantOutcome
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 IssueReclaimGrantOutcome
impl Debug for IssueReclaimGrantOutcome
Source§impl PartialEq for IssueReclaimGrantOutcome
impl PartialEq for IssueReclaimGrantOutcome
impl Eq for IssueReclaimGrantOutcome
impl StructuralPartialEq for IssueReclaimGrantOutcome
Auto Trait Implementations§
impl Freeze for IssueReclaimGrantOutcome
impl RefUnwindSafe for IssueReclaimGrantOutcome
impl Send for IssueReclaimGrantOutcome
impl Sync for IssueReclaimGrantOutcome
impl Unpin for IssueReclaimGrantOutcome
impl UnsafeUnpin for IssueReclaimGrantOutcome
impl UnwindSafe for IssueReclaimGrantOutcome
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