pub struct Kstat<'a> {
pub ks_crtime: i64,
pub ks_snaptime: i64,
pub ks_module: &'a str,
pub ks_instance: i32,
pub ks_name: &'a str,
pub ks_type: Type,
pub ks_class: &'a str,
/* private fields */
}
Expand description
Kstat
represents a single kernel statistic.
Fields§
§ks_crtime: i64
The creation time of the stat, in nanoseconds.
ks_snaptime: i64
The time of the last update, in nanoseconds.
ks_module: &'a str
The module of the kstat.
ks_instance: i32
The instance of the kstat.
ks_name: &'a str
The name of the kstat.
ks_type: Type
The type of the kstat.
ks_class: &'a str
The class of the kstat.
Trait Implementations§
source§impl<'a> Ord for Kstat<'a>
impl<'a> Ord for Kstat<'a>
source§impl<'a> PartialEq for Kstat<'a>
impl<'a> PartialEq for Kstat<'a>
source§impl<'a> PartialOrd for Kstat<'a>
impl<'a> PartialOrd for Kstat<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a> Copy for Kstat<'a>
impl<'a> Eq for Kstat<'a>
impl<'a> Send for Kstat<'a>
impl<'a> StructuralEq for Kstat<'a>
impl<'a> StructuralPartialEq for Kstat<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Kstat<'a>
impl<'a> !Sync for Kstat<'a>
impl<'a> Unpin for Kstat<'a>
impl<'a> UnwindSafe for Kstat<'a>
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