pub struct CpuResourceBuilder { /* private fields */ }Expand description
A builder that configures the cpuset & cpu controllers of a control group.
Implementations§
Source§impl CpuResourceBuilder
impl CpuResourceBuilder
Sourcepub fn cpus(self, cpus: String) -> Self
pub fn cpus(self, cpus: String) -> Self
See the similarly named function in the respective controller.
Sourcepub fn mems(self, mems: String) -> Self
pub fn mems(self, mems: String) -> Self
See the similarly named function in the respective controller.
See the similarly named function in the respective controller.
Sourcepub fn quota(self, quota: i64) -> Self
pub fn quota(self, quota: i64) -> Self
See the similarly named function in the respective controller.
Sourcepub fn period(self, period: u64) -> Self
pub fn period(self, period: u64) -> Self
See the similarly named function in the respective controller.
Sourcepub fn realtime_runtime(self, realtime_runtime: i64) -> Self
pub fn realtime_runtime(self, realtime_runtime: i64) -> Self
See the similarly named function in the respective controller.
Sourcepub fn realtime_period(self, realtime_period: u64) -> Self
pub fn realtime_period(self, realtime_period: u64) -> Self
See the similarly named function in the respective controller.
Sourcepub fn done(self) -> CgroupBuilder
pub fn done(self) -> CgroupBuilder
Finish the construction of the cpu resources of a control group.
Auto Trait Implementations§
impl Freeze for CpuResourceBuilder
impl RefUnwindSafe for CpuResourceBuilder
impl Send for CpuResourceBuilder
impl Sync for CpuResourceBuilder
impl Unpin for CpuResourceBuilder
impl UnwindSafe for CpuResourceBuilder
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