pub struct LinuxCPUBuilder { /* private fields */ }
Expand description
Builder for LinuxCPU
.
Implementations§
Source§impl LinuxCPUBuilder
impl LinuxCPUBuilder
CPU shares (relative weight (ratio) vs. other cgroups with cpu shares).
Sourcepub fn quota<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self
pub fn quota<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self
CPU hardcap limit (in usecs). Allowed cpu time in a given period.
Sourcepub fn period<VALUE: Into<Option<u64>>>(&mut self, value: VALUE) -> &mut Self
pub fn period<VALUE: Into<Option<u64>>>(&mut self, value: VALUE) -> &mut Self
CPU period to be used for hardcapping (in usecs).
Sourcepub fn realtime_runtime<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn realtime_runtime<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
How much time realtime scheduling may use (in usecs).
Sourcepub fn realtime_period<VALUE: Into<Option<u64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn realtime_period<VALUE: Into<Option<u64>>>( &mut self, value: VALUE, ) -> &mut Self
CPU period to be used for realtime scheduling (in usecs).
Sourcepub fn cpus<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn cpus<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
CPUs to use within the cpuset. Default is to use any CPU available.
Trait Implementations§
Source§impl Clone for LinuxCPUBuilder
impl Clone for LinuxCPUBuilder
Source§fn clone(&self) -> LinuxCPUBuilder
fn clone(&self) -> LinuxCPUBuilder
Returns a copy 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 Default for LinuxCPUBuilder
impl Default for LinuxCPUBuilder
Source§fn default() -> LinuxCPUBuilder
fn default() -> LinuxCPUBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LinuxCPUBuilder
impl RefUnwindSafe for LinuxCPUBuilder
impl Send for LinuxCPUBuilder
impl Sync for LinuxCPUBuilder
impl Unpin for LinuxCPUBuilder
impl UnwindSafe for LinuxCPUBuilder
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