Enum endbasic_core::exec::StopReason[][src]

#[must_use]pub enum StopReason {
    Eof,
    Exited(u8),
}

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

impl StopReason[src]

pub fn as_exit_code(&self) -> i32[src]

Converts the stop reason into a process exit code.

Trait Implementations

impl Clone for StopReason[src]

impl Debug for StopReason[src]

impl PartialEq<StopReason> for StopReason[src]

impl StructuralPartialEq for StopReason[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.