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 for StopReason
impl PartialEq for StopReason
impl Eq for StopReason
impl StructuralPartialEq for StopReason
Auto Trait Implementations§
impl Freeze for StopReason
impl RefUnwindSafe for StopReason
impl Send for StopReason
impl Sync for StopReason
impl Unpin for StopReason
impl UnwindSafe for StopReason
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