pub enum InspectError {
Io(Error),
Rustc(String),
Utf8(FromUtf8Error),
Rustfmt(String),
PrettyPrint(String),
Flowgraph(String),
DotExec(Error),
Generic(String),
}Expand description
Custom type for inspection errors
Variants§
Io(Error)
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
Flowgraph(String)
Error while trying to generate a flowgraph
DotExec(Error)
Error invoking dot
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<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.
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.
Auto Trait Implementations§
impl Freeze for InspectError
impl !RefUnwindSafe for InspectError
impl Send for InspectError
impl Sync for InspectError
impl Unpin for InspectError
impl !UnwindSafe for InspectError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more