Type Alias jupiter::commands::CommandResult

source ·
pub type CommandResult = Result<(), CommandError>;
Expand description

Represents the return type of command invocations.

These are either an empty result (as the real result is passed through via the response within the call) or a *CommandError to signal that either an IO / output error, a server error or a client error occurred.

Aliased Type§

enum CommandResult {
    Ok(()),
    Err(CommandError),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(CommandError)

Contains the error value

Trait Implementations§

source§

impl ResultExt for CommandResult

source§

fn complete(self, call: Call)

Completes the given call with the wrapped result. Read more