pub enum Stopped {
Fuel,
Deadline,
Cancelled,
CallDepth,
HostCalls,
Concurrency,
}Expand description
Why execution was stopped.
Variants§
Fuel
The fuel budget was exhausted.
Deadline
The wall-clock deadline was exceeded.
Cancelled
The run was cancelled from outside.
CallDepth
The call-depth limit was exceeded.
HostCalls
The host-call limit was exceeded.
Concurrency
A spawn would have left more tasks alive at once than the
concurrency limit allows.
Implementations§
Source§impl Stopped
impl Stopped
Sourcepub fn outcome(self) -> RunOutcome
pub fn outcome(self) -> RunOutcome
How a run stopped this way is classified in its terminal trace event.
One RunOutcome per Stopped, because each of these is a
different control and a reader deciding what to do about a stopped run
wants to know which one: a run out of fuel and a run past its deadline
are not the same report, however alike the two stops look from inside
the budget.
Trait Implementations§
impl Copy for Stopped
impl Eq for Stopped
impl StructuralPartialEq for Stopped
Auto Trait Implementations§
impl Freeze for Stopped
impl RefUnwindSafe for Stopped
impl Send for Stopped
impl Sync for Stopped
impl Unpin for Stopped
impl UnsafeUnpin for Stopped
impl UnwindSafe for Stopped
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.