pub struct LinuxConfig {
pub scopes: bool,
pub enforce_cpu: bool,
pub enforce_memory: bool,
}Expand description
How leases use cgroups on Linux; ignored on other OSes.
Each active lease runs in a systemd scope of its own, which gives exact usage and a kill that ends every process at once. Caps on what a lease may use are opt-in, because a job that outgrows its declared profile is slowed down by them.
Fields§
§scopes: boolRun each lease in its own cgroup scope when the systemd user manager allows it. Off follows the process tree instead, as without systemd.
enforce_cpu: boolCap a lease’s CPU time at its reserved cores.
enforce_memory: boolThrottle a lease above its reserved RAM (MemoryHigh); it is never killed for memory.
Trait Implementations§
Source§impl Clone for LinuxConfig
impl Clone for LinuxConfig
Source§impl Debug for LinuxConfig
impl Debug for LinuxConfig
Source§impl Default for LinuxConfig
impl Default for LinuxConfig
Source§impl<'de> Deserialize<'de> for LinuxConfigwhere
LinuxConfig: Default,
impl<'de> Deserialize<'de> for LinuxConfigwhere
LinuxConfig: Default,
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
impl Eq for LinuxConfig
Source§impl PartialEq for LinuxConfig
impl PartialEq for LinuxConfig
Source§impl Serialize for LinuxConfig
impl Serialize for LinuxConfig
impl StructuralPartialEq for LinuxConfig
Auto Trait Implementations§
impl Forget for LinuxConfig
impl Freeze for LinuxConfig
impl Move for LinuxConfig
impl RefUnwindSafe for LinuxConfig
impl Send for LinuxConfig
impl Sync for LinuxConfig
impl Unpin for LinuxConfig
impl UnsafeUnpin for LinuxConfig
impl UnwindSafe for LinuxConfig
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