[][src]Struct container_spec::LinuxCPUBuilder

pub struct LinuxCPUBuilder { /* fields omitted */ }

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]

How much time realtime scheduling may use (in usecs).

pub fn realtime_period<VALUE: Into<Option<u64>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

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]

Builds a new LinuxCPU.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for LinuxCPUBuilder[src]

impl Default for LinuxCPUBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.