pub enum CommitError {
Cancelled,
Denied(DenyReason),
AlreadyReleased,
AlreadyCommitted,
}Expand description
Error from Reservation::commit_at_execution_start.
Variants§
Cancelled
Cancellation won before execution started.
Denied(DenyReason)
Funding could not remain valid through execution start. The reservation has been released (units returned, zero charged) and the caller must not execute the work.
DenyReason::FundingExpiredAtStart is the lease’s usability window
lapsing between reserve and commit: past that point the allocator may
reclaim and re-grant the capacity, so committing would perform work
that can never be billed. Under
EnforcementMode::Elastic
the same lapse first attempts the overage fallback, and any of
OverageCapExhausted, OverageCapTemporarilyExhausted, or
OverageCommitInProgress may be reported instead. Each carries its own
Retry classification and none may be collapsed
into another: telling a caller to retry immediately against units that
are already irrevocable is precisely the lie the classifier exists to
prevent.
AlreadyReleased
Cancellation won the race. The caller must not execute the work; the request reports zero units.
AlreadyCommitted
The reservation was committed before — committing twice is a caller bug, surfaced rather than silently absorbed.