Type Alias cargo_edit::CliResult

source ·
pub type CliResult = Result<(), CliError>;
Expand description

CLI-specific result

Aliased Type§

enum CliResult {
    Ok(()),
    Err(CliError),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(CliError)

Contains the error value

Trait Implementations§

source§

impl<T, E> Context<T, E> for Result<T, E>where E: StdError + Send + Sync + 'static,

source§

fn context<C>(self, context: C) -> Result<T, Error>where C: Display + Send + Sync + 'static,

Wrap the error value with additional context.
source§

fn with_context<C, F>(self, context: F) -> Result<T, Error>where C: Display + Send + Sync + 'static, F: FnOnce() -> C,

Wrap the error value with additional context that is evaluated lazily only once an error does occur.