[−][src]Struct linux_taskstats::TaskStats
The taskstats representation for a task.
This struct remaps commonly used struct taskstats
fields for primarily:
- Access values with rust's primitive types
- Better structured organization of group of fields
- Support serialization
There are more (but may not much interested) fields in the original
struct taskstats
and they are accessible through obtaining the original
struct by TaskStats#inner()
.
Fields
tid: u32
The target task ID
cpu: Cpu
Staticstics related to CPU time
memory: Memory
Statistics related to memory, vm
io: Io
Staticstics related to I/O at syscall surface
blkio: BlkIo
Statistics related to I/O at block device level
ctx_switches: ContextSwitches
Statistics related to context switches
delays: Delays
Statistics related to scheduling delay (delay accounting)
Implementations
impl TaskStats
[src]
pub fn inner(&self) -> &taskstats
[src]
Return inner representation of taskstats.
The returned value is an instance of struct taskstats
that was
received from kernel.
TaskStats
remaps most of its fields into rust-friendly types and
structure, so this inner object should be referred only when the user
wants to access more information than available in remapped fields.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TaskStats
impl Send for TaskStats
impl Sync for TaskStats
impl Unpin for TaskStats
impl UnwindSafe for TaskStats
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,