pub struct Limit {
pub soft: Option<u32>,
pub hard: Option<u32>,
}
Expand description
A limit for a GNU/Linux specific limitable property.
Any given limit always contain a soft and a hard limit.
A soft or hard limited whose value is None
here means there is no actual limit, i.e. the value
found in /proc/<pid>/limits
is unlimited
.
Fields§
§soft: Option<u32>
§hard: Option<u32>
Trait Implementations§
impl Eq for Limit
impl StructuralPartialEq for Limit
Auto Trait Implementations§
impl Freeze for Limit
impl RefUnwindSafe for Limit
impl Send for Limit
impl Sync for Limit
impl Unpin for Limit
impl UnwindSafe for Limit
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