[][src]Enum duckscript::types::command::CommandResult

pub enum CommandResult {
    Continue(Option<String>),
    GoTo(Option<String>, GoToValue),
    Error(String),
    Crash(String),
    Exit(Option<String>),
}

Command execution result

Variants

Continue(Option<String>)

Holds the command output and tells the runner to continue to next instruction

GoTo(Option<String>, GoToValue)

Holds the command output and tells the runner to jump to the provided label

Error(String)

Holds the error message and the meta info of the instruction that caused it

Crash(String)

Holds the critical error message and the meta info of the instruction that caused it

Exit(Option<String>)

Holds the command output and tells the runner to stop the script execution

Trait Implementations

impl Clone for CommandResult[src]

impl Debug for CommandResult[src]

Auto Trait Implementations

impl RefUnwindSafe for CommandResult

impl Send for CommandResult

impl Sync for CommandResult

impl Unpin for CommandResult

impl UnwindSafe for CommandResult

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.