pub enum Error {
ParseError(DTraceError),
IO(Error),
Env(VarError),
InvalidFile,
DTraceError,
Json(Error),
}
Expand description
Errors related to building DTrace probes into Rust code
Variants§
ParseError(DTraceError)
Error during parsing of DTrace provider source
IO(Error)
Error reading or writing files, or registering DTrace probes
Env(VarError)
Error related to environment variables, e.g., while running a build script
InvalidFile
An error occurred extracting probe information from the encoded object file sections
DTraceError
Error related to calling out to DTrace itself
Json(Error)
Error converting input to JSON
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<DTraceError> for Error
impl From<DTraceError> for Error
source§fn from(source: DTraceError) -> Self
fn from(source: DTraceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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