pub struct Rlimit {
pub resource: RlimitResource,
pub soft: u64,
pub hard: u64,
}Expand description
A POSIX resource limit.
Fields§
§resource: RlimitResourceResource type.
soft: u64Soft limit (can be raised up to hard limit by the process).
hard: u64Hard limit (ceiling, requires privileges to raise).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rlimit
impl<'de> Deserialize<'de> for Rlimit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Rlimit
impl RefUnwindSafe for Rlimit
impl Send for Rlimit
impl Sync for Rlimit
impl Unpin for Rlimit
impl UnsafeUnpin for Rlimit
impl UnwindSafe for Rlimit
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