Struct rusage

#[repr(C)]
pub struct rusage { pub ru_utime: timeval, pub ru_stime: timeval, pub ru_maxrss: c_long, pub ru_ixrss: c_long, pub ru_idrss: c_long, pub ru_isrss: c_long, pub ru_minflt: c_long, pub ru_majflt: c_long, pub ru_nswap: c_long, pub ru_inblock: c_long, pub ru_oublock: c_long, pub ru_msgsnd: c_long, pub ru_msgrcv: c_long, pub ru_nsignals: c_long, pub ru_nvcsw: c_long, pub ru_nivcsw: c_long }

Fields

ru_utime: timeval
ru_stime: timeval
ru_maxrss: c_long
ru_ixrss: c_long
ru_idrss: c_long
ru_isrss: c_long
ru_minflt: c_long
ru_majflt: c_long
ru_nswap: c_long
ru_inblock: c_long
ru_oublock: c_long
ru_msgsnd: c_long
ru_msgrcv: c_long
ru_nsignals: c_long
ru_nvcsw: c_long
ru_nivcsw: c_long

Trait Implementations

impl Clone for rusage

fn clone(&self) -> Self

impl Copy for rusage

impl Debug for rusage

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for rusage

impl Hash for rusage

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for rusage

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for rusage

Auto Trait Implementations

impl Freeze for rusage

impl RefUnwindSafe for rusage

impl Send for rusage

impl Sync for rusage

impl Unpin for rusage

impl UnsafeUnpin for rusage

impl UnwindSafe for rusage

Blanket Implementations

impl<T> Any for rusage where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for rusage where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for rusage where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for rusage where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for rusage

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for rusage where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for rusage where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for rusage where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>