pub enum ExecutionOutcome {
Match {
matched: ExecutionMatch,
receipt: ExecutionReceipt,
},
NoMatch {
receipt: ExecutionReceipt,
},
Limit {
limit: ExecutionLimit,
receipt: ExecutionReceipt,
},
Unsupported {
feature: UnsupportedFeature,
receipt: ExecutionReceipt,
},
}Expand description
A typed execution result. Resource exhaustion is never collapsed into rejection.
Variants§
Match
The automaton accepted a subject prefix.
NoMatch
The automaton definitively rejected the subject.
Fields
§
receipt: ExecutionReceiptConsumed work.
Limit
A configured resource boundary stopped execution.
Fields
§
limit: ExecutionLimitExhausted resource.
§
receipt: ExecutionReceiptWork consumed before stopping.
Unsupported
The requested construct belongs to the separately budgeted extension lane.
Fields
§
feature: UnsupportedFeatureExact unsupported construct.
§
receipt: ExecutionReceiptRegular work consumed before discovering it.
Trait Implementations§
Source§impl Clone for ExecutionOutcome
impl Clone for ExecutionOutcome
Source§fn clone(&self) -> ExecutionOutcome
fn clone(&self) -> ExecutionOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExecutionOutcome
impl Debug for ExecutionOutcome
impl Eq for ExecutionOutcome
Source§impl PartialEq for ExecutionOutcome
impl PartialEq for ExecutionOutcome
impl StructuralPartialEq for ExecutionOutcome
Auto Trait Implementations§
impl Freeze for ExecutionOutcome
impl RefUnwindSafe for ExecutionOutcome
impl Send for ExecutionOutcome
impl Sync for ExecutionOutcome
impl Unpin for ExecutionOutcome
impl UnsafeUnpin for ExecutionOutcome
impl UnwindSafe for ExecutionOutcome
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