Struct cargo::util::errors::CliError [] [src]

pub struct CliError {
    pub error: Option<Box<CargoError>>,
    pub unknown: bool,
    pub exit_code: i32,
}

Fields

error: Option<Box<CargoError>> unknown: bool exit_code: i32

Methods

impl CliError
[src]

fn new(error: Box<CargoError>, code: i32) -> CliError

fn code(code: i32) -> CliError

Trait Implementations

impl Debug for CliError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for CliError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

The lower-level cause of this error, if any. Read more

impl Display for CliError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<Box<CargoError>> for CliError
[src]

fn from(err: Box<CargoError>) -> CliError

Performs the conversion.

impl CargoError for CliError
[src]

fn is_human(&self) -> bool

fn cargo_cause(&self) -> Option<&CargoError>