pub enum ChainOutcome {
Return(i64),
Deopt(i64),
}Expand description
What one chain run produced.
Variants§
Return(i64)
The chain reached its Return; this is the returned value.
Deopt(i64)
A checked op side-exited; the payload is the RAW status-cell value.
1 is the plain marker (replay from the entry state — every effect
confined to the private frame). (pc << 2) | 3 is a PRECISE exit:
effects already landed, resume at bytecode pc.
Implementations§
Source§impl ChainOutcome
impl ChainOutcome
Sourcepub fn expect_return(self) -> i64
pub fn expect_return(self) -> i64
The returned value; panics on ChainOutcome::Deopt — for tests and
callers of chains that contain no checked ops.
Trait Implementations§
Source§impl Clone for ChainOutcome
impl Clone for ChainOutcome
Source§fn clone(&self) -> ChainOutcome
fn clone(&self) -> ChainOutcome
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 ChainOutcome
impl Debug for ChainOutcome
Source§impl PartialEq for ChainOutcome
impl PartialEq for ChainOutcome
Source§fn eq(&self, other: &ChainOutcome) -> bool
fn eq(&self, other: &ChainOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ChainOutcome
impl Eq for ChainOutcome
impl StructuralPartialEq for ChainOutcome
Auto Trait Implementations§
impl Freeze for ChainOutcome
impl RefUnwindSafe for ChainOutcome
impl Send for ChainOutcome
impl Sync for ChainOutcome
impl Unpin for ChainOutcome
impl UnsafeUnpin for ChainOutcome
impl UnwindSafe for ChainOutcome
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