#[non_exhaustive]pub enum Probe<T> {
Known(T),
Unknown,
Inaccessible,
}Expand description
Tri-state for gathered data that may be unknown or inaccessible.
Distinguishes successfully gathered data, general failures,
And explicit permission denials during gathering. Check functions
Treat Unknown and Inaccessible as degraded – never false-green.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Known(T)
Successfully gathered data.
Unknown
Could not read – general failure (e.g., syscall error, missing /proc).
Inaccessible
Could not read – explicit EACCES/EPERM on the probe itself.
Implementations§
Trait Implementations§
impl<T: Eq> Eq for Probe<T>
impl<T> StructuralPartialEq for Probe<T>
Auto Trait Implementations§
impl<T> Freeze for Probe<T>where
T: Freeze,
impl<T> RefUnwindSafe for Probe<T>where
T: RefUnwindSafe,
impl<T> Send for Probe<T>where
T: Send,
impl<T> Sync for Probe<T>where
T: Sync,
impl<T> Unpin for Probe<T>where
T: Unpin,
impl<T> UnsafeUnpin for Probe<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Probe<T>where
T: UnwindSafe,
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