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> PartialOrd for Kstat<'a>
impl<'a> PartialOrd for Kstat<'a>
impl<'a> Copy for Kstat<'a>
impl<'a> Eq for Kstat<'a>
impl<'a> Send for Kstat<'a>
impl<'a> StructuralPartialEq for Kstat<'a>
Auto Trait Implementations§
impl<'a> Freeze for Kstat<'a>
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