pub struct Resources {
pub memory: MemoryResources,
pub pid: PidResources,
pub cpu: CpuResources,
pub devices: DeviceResources,
pub network: NetworkResources,
pub hugepages: HugePageResources,
pub blkio: BlkIoResources,
}Expand description
The resource limits and constraints that will be set on the control group.
Fields§
§memory: MemoryResourcesMemory usage related limits.
pid: PidResourcesProcess identifier related limits.
cpu: CpuResourcesCPU related limits.
devices: DeviceResourcesDevice related limits.
network: NetworkResourcesNetwork related tags and limits.
hugepages: HugePageResourcesHugepages consumption related limits.
blkio: BlkIoResourcesBlock device I/O related limits.
Trait Implementations§
impl Eq for Resources
impl StructuralPartialEq for Resources
Auto Trait Implementations§
impl Freeze for Resources
impl RefUnwindSafe for Resources
impl Send for Resources
impl Sync for Resources
impl Unpin for Resources
impl UnwindSafe for Resources
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