pub struct ScopeParameters {
pub unit_name: String,
pub description: Option<String>,
pub cpu_weight: Option<u64>,
pub memory_high: Option<u64>,
pub memory_max: Option<u64>,
pub tasks_max: Option<u64>,
}Expand description
Configure a control group via systemd.
Fields§
§unit_name: StringScope name, like cordon-XXXXXXXXXXXXXXXX.scope.
Can be generated by unique_scope_name.
description: Option<String>§cpu_weight: Option<u64>§memory_high: Option<u64>§memory_max: Option<u64>§tasks_max: Option<u64>Implementations§
Source§impl ScopeParameters
impl ScopeParameters
pub fn with_unique_name() -> Self
Trait Implementations§
Source§impl Clone for ScopeParameters
impl Clone for ScopeParameters
Source§fn clone(&self) -> ScopeParameters
fn clone(&self) -> ScopeParameters
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 moreAuto Trait Implementations§
impl Freeze for ScopeParameters
impl RefUnwindSafe for ScopeParameters
impl Send for ScopeParameters
impl Sync for ScopeParameters
impl Unpin for ScopeParameters
impl UnwindSafe for ScopeParameters
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