pub struct Probe { /* private fields */ }Available on Linux only.
Expand description
A host’s /proc and /sys, read through an explicit root.
Implementations§
Source§impl Probe
impl Probe
Sourcepub fn with_root(root: impl Into<PathBuf>) -> Result<Probe>
pub fn with_root(root: impl Into<PathBuf>) -> Result<Probe>
A probe of the host whose root filesystem is mounted at root.
§Errors
NotFound when root has no readable proc/stat (the host’s /proc
is not mounted there).
Sourcepub fn cpu_sampler(&self) -> Result<Sampler>
pub fn cpu_sampler(&self) -> Result<Sampler>
Sourcepub fn disks(&self) -> Result<Vec<Disk>>
pub fn disks(&self) -> Result<Vec<Disk>>
The host’s filesystems, as disk::list selects them, with mount
points as the host sees them and space read through the root.
§Errors
As disk::list.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Probe
impl Freeze for Probe
impl Move for Probe
impl RefUnwindSafe for Probe
impl Send for Probe
impl Sync for Probe
impl Unpin for Probe
impl UnsafeUnpin for Probe
impl UnwindSafe for Probe
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