[−][src]Struct container_spec::LinuxCPUBuilder
Builder for LinuxCPU
.
Methods
impl LinuxCPUBuilder
[src]
pub fn shares<VALUE: Into<Option<u64>>>(&mut self, value: VALUE) -> &mut Self
[src]
CPU shares (relative weight (ratio) vs. other cgroups with cpu shares).
pub fn quota<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self
[src]
CPU hardcap limit (in usecs). Allowed cpu time in a given period.
pub fn period<VALUE: Into<Option<u64>>>(&mut self, value: VALUE) -> &mut Self
[src]
CPU period to be used for hardcapping (in usecs).
pub fn realtime_runtime<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
How much time realtime scheduling may use (in usecs).
pub fn realtime_period<VALUE: Into<Option<u64>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
CPU period to be used for realtime scheduling (in usecs).
pub fn cpus<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
CPUs to use within the cpuset. Default is to use any CPU available.
pub fn mems<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
List of memory nodes in the cpuset. Default is to use any available memory node.
pub fn build(&self) -> Result<LinuxCPU, String>
[src]
Trait Implementations
impl Clone for LinuxCPUBuilder
[src]
fn clone(&self) -> LinuxCPUBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for LinuxCPUBuilder
[src]
fn default() -> LinuxCPUBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for LinuxCPUBuilder
impl Send for LinuxCPUBuilder
impl Sync for LinuxCPUBuilder
impl Unpin for LinuxCPUBuilder
impl UnwindSafe for LinuxCPUBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,