Struct cgroups_rs::Resources[][src]

pub struct Resources {
    pub memory: MemoryResources,
    pub pid: PidResources,
    pub cpu: CpuResources,
    pub devices: DeviceResources,
    pub network: NetworkResources,
    pub hugepages: HugePageResources,
    pub blkio: BlkIoResources,
}

The resource limits and constraints that will be set on the control group.

Fields

memory: MemoryResources

Memory usage related limits.

pid: PidResources

Process identifier related limits.

cpu: CpuResources

CPU related limits.

devices: DeviceResources

Device related limits.

network: NetworkResources

Network related tags and limits.

hugepages: HugePageResources

Hugepages consumption related limits.

blkio: BlkIoResources

Block device I/O related limits.

Trait Implementations

impl Clone for Resources[src]

impl Debug for Resources[src]

impl Default for Resources[src]

impl Eq for Resources[src]

impl PartialEq<Resources> for Resources[src]

impl StructuralEq for Resources[src]

impl StructuralPartialEq for Resources[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.