pub enum CProbeError {
IoError(Error),
CompileError(Output),
RunError(Output, Output),
OtherError(String),
}
Expand description
Error type used when a C API probing program fails to compile or run.
Variants§
IoError(Error)
An I/O error prevented the operation from continuing.
CompileError(Output)
Compilation failed.
RunError(Output, Output)
The probing program failed when run. The compilation output is included to assist debugging.
OtherError(String)
All other errors, e.g. corrupt output from a probe program.
Trait Implementations§
Source§impl Debug for CProbeError
impl Debug for CProbeError
Source§impl Display for CProbeError
impl Display for CProbeError
Source§impl Error for CProbeError
impl Error for CProbeError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations§
impl Freeze for CProbeError
impl !RefUnwindSafe for CProbeError
impl Send for CProbeError
impl Sync for CProbeError
impl Unpin for CProbeError
impl !UnwindSafe for CProbeError
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