Enum risc0_zkvm::ExitCode
source · pub enum ExitCode {
SystemSplit,
SessionLimit,
Paused(u32),
Halted(u32),
Fault,
}
Expand description
Indicates how a Segment or Session’s execution has terminated
Variants§
SystemSplit
This indicates when a system-initiated split has occured due to the segment limit being exceeded.
SessionLimit
This indicates that the session limit has been reached.
Paused(u32)
A user may manually pause a session so that it can be resumed at a later time, along with the user returned code.
Halted(u32)
This indicates normal termination of a program with an interior exit code returned from the guest.
Fault
This indicates termination of a program where the next instruction will fail.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ExitCode
impl<'de> Deserialize<'de> for ExitCode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ExitCode
impl PartialEq for ExitCode
impl Copy for ExitCode
impl StructuralPartialEq for ExitCode
Auto Trait Implementations§
impl RefUnwindSafe for ExitCode
impl Send for ExitCode
impl Sync for ExitCode
impl Unpin for ExitCode
impl UnwindSafe for ExitCode
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