Enum endbasic_core::exec::StopReason
source · pub enum StopReason {
Eof,
Exited(u8),
Break,
}Expand description
Describes how the machine stopped execution while it was running a script via exec().
Variants§
Eof
Execution terminates because the machine reached the end of the input.
Exited(u8)
Execution terminated because the machine was asked to terminate with END.
Break
Execution terminated because the machine received a break signal.
Implementations§
source§impl StopReason
impl StopReason
sourcepub fn as_exit_code(&self) -> i32
pub fn as_exit_code(&self) -> i32
Converts the stop reason into a process exit code.
Trait Implementations§
source§impl Clone for StopReason
impl Clone for StopReason
source§fn clone(&self) -> StopReason
fn clone(&self) -> StopReason
Returns a copy of the value. Read more
1.0.0 · 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 StopReason
impl Debug for StopReason
source§impl PartialEq<StopReason> for StopReason
impl PartialEq<StopReason> for StopReason
source§fn eq(&self, other: &StopReason) -> bool
fn eq(&self, other: &StopReason) -> bool
This method tests for
self and other values to be equal, and is used
by ==.