pub struct CpuMax {
pub quota: Option<u64>,
pub period: u64,
}Expand description
CPU limit (cpu.max) for cgroup v2.
<quota> <period>sets a quota/period time window.
Fields§
§quota: Option<u64>CPU quota in microseconds for each period. (None is unlimited).
period: u64Period in microseconds (usually 100_000 = 100ms).
Trait Implementations§
impl Copy for CpuMax
Auto Trait Implementations§
impl Freeze for CpuMax
impl RefUnwindSafe for CpuMax
impl Send for CpuMax
impl Sync for CpuMax
impl Unpin for CpuMax
impl UnsafeUnpin for CpuMax
impl UnwindSafe for CpuMax
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