#[non_exhaustive]#[repr(i32)]pub enum UsageWho {
RUSAGE_SELF = 0,
RUSAGE_CHILDREN = -1,
RUSAGE_THREAD = 1,
}
Expand description
Whose resource usage should be returned by getrusage
.
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.
RUSAGE_SELF = 0
Resource usage for the current process.
RUSAGE_CHILDREN = -1
Resource usage for all the children that have terminated and been waited for.
RUSAGE_THREAD = 1
Resource usage for the calling thread.
Trait Implementations§
source§impl Ord for UsageWho
impl Ord for UsageWho
source§impl PartialOrd for UsageWho
impl PartialOrd for UsageWho
impl Copy for UsageWho
impl Eq for UsageWho
impl StructuralPartialEq for UsageWho
Auto Trait Implementations§
impl Freeze for UsageWho
impl RefUnwindSafe for UsageWho
impl Send for UsageWho
impl Sync for UsageWho
impl Unpin for UsageWho
impl UnwindSafe for UsageWho
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)