#[repr(i32)]#[non_exhaustive]pub enum UsageWho {
RUSAGE_SELF,
RUSAGE_CHILDREN,
}
Available on crate feature
resource
only.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
Resource usage for the current process.
RUSAGE_CHILDREN
Resource usage for all the children that have terminated and been waited for.
Trait Implementations§
source§impl Ord for UsageWho
impl Ord for UsageWho
source§impl PartialEq<UsageWho> for UsageWho
impl PartialEq<UsageWho> for UsageWho
source§impl PartialOrd<UsageWho> for UsageWho
impl PartialOrd<UsageWho> for UsageWho
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 Copy for UsageWho
impl Eq for UsageWho
impl StructuralEq for UsageWho
impl StructuralPartialEq for UsageWho
Auto Trait Implementations§
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