Enum endbasic_core::exec::StopReason
source · [−]pub enum StopReason {
Eof,
Exited(u8),
}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 exit().
Implementations
sourceimpl 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
sourceimpl Clone for StopReason
impl Clone for StopReason
sourcefn clone(&self) -> StopReason
fn clone(&self) -> StopReason
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StopReason
impl Debug for StopReason
sourceimpl PartialEq<StopReason> for StopReason
impl PartialEq<StopReason> for StopReason
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &StopReason) -> bool
fn ne(&self, other: &StopReason) -> bool
This method tests for !=.
impl StructuralPartialEq for StopReason
Auto Trait Implementations
impl RefUnwindSafe for StopReason
impl Send for StopReason
impl Sync for StopReason
impl Unpin for StopReason
impl UnwindSafe for StopReason
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more