Enum cargo_inspect::errors::InspectError
source · pub enum InspectError {
Io(IoError),
Rustc(String),
Utf8(FromUtf8Error),
Rustfmt(String),
PrettyPrint(String),
Generic(String),
}
Expand description
Custom type for inspection errors
Variants§
Io(IoError)
Error during I/O handling
Rustc(String)
Error when invoking rustc
Utf8(FromUtf8Error)
Error when converting data to UTF8
Rustfmt(String)
Error while invoking rustfmt
PrettyPrint(String)
Error while invoking prettyprint
Generic(String)
Other error
Trait Implementations§
source§impl Debug for InspectError
impl Debug for InspectError
source§impl Display for InspectError
impl Display for InspectError
source§impl Fail for InspectError
impl Fail for InspectError
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresource§impl From<Error> for InspectError
impl From<Error> for InspectError
source§impl From<Error> for InspectError
impl From<Error> for InspectError
source§fn from(e: PrettyPrintError) -> Self
fn from(e: PrettyPrintError) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for InspectError
impl From<FromUtf8Error> for InspectError
source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.