pub struct ExecRlimit {
pub resource: String,
pub soft: u64,
pub hard: u64,
}Expand description
A POSIX resource limit to apply to a spawned process.
Fields§
§resource: StringResource name (lowercase): “nofile”, “nproc”, “as”, “cpu”, etc.
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 Clone for ExecRlimit
impl Clone for ExecRlimit
Source§fn clone(&self) -> ExecRlimit
fn clone(&self) -> ExecRlimit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecRlimit
impl Debug for ExecRlimit
Source§impl<'de> Deserialize<'de> for ExecRlimit
impl<'de> Deserialize<'de> for ExecRlimit
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 ExecRlimit
impl RefUnwindSafe for ExecRlimit
impl Send for ExecRlimit
impl Sync for ExecRlimit
impl Unpin for ExecRlimit
impl UnsafeUnpin for ExecRlimit
impl UnwindSafe for ExecRlimit
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