pub enum SamplingError {
Io(Error),
InvalidData(&'static str),
CommandFailed {
program: PathBuf,
status: ExitStatus,
},
UnsupportedHost,
}Expand description
Failure to observe a native process table or sum its resident bytes.
Variants§
Io(Error)
Native filesystem or process invocation failed.
InvalidData(&'static str)
A native record was malformed or its byte arithmetic overflowed.
CommandFailed
The native process-table command failed.
UnsupportedHost
This host has no supported process-table observation backend.
Trait Implementations§
Source§impl Debug for SamplingError
impl Debug for SamplingError
Source§impl Display for SamplingError
impl Display for SamplingError
Source§impl Error for SamplingError
impl Error for SamplingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl !RefUnwindSafe for SamplingError
impl !UnwindSafe for SamplingError
impl Freeze for SamplingError
impl Send for SamplingError
impl Sync for SamplingError
impl Unpin for SamplingError
impl UnsafeUnpin for SamplingError
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