Skip to main content

CommandResult

Type Alias CommandResult 

Source
pub type CommandResult = Result<(), Box<dyn Error + Send + Sync>>;
Expand description

Result type returned by console commands and Console::run.

Aliased Type§

pub enum CommandResult {
    Ok(()),
    Err(Box<dyn Error + Sync + Send>),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(Box<dyn Error + Sync + Send>)

Contains the error value