pub struct Resources {
pub cpu: Resources,
pub cpuset: Resources,
pub memory: Resources,
pub hugetlb: Resources,
pub devices: Resources,
pub blkio: Resources,
pub rdma: Resources,
pub net_prio: Resources,
pub net_cls: Resources,
pub pids: Resources,
pub freezer: Resources,
}Expand description
Compound of resource limits and constraints for all subsystems.
Fields§
§cpu: ResourcesResource limit on how much CPU time this cgroup can use.
cpuset: ResourcesResource limit on which CPUs and memory nodes this cgroup can use, and how they are controlled by the system.
memory: ResourcesResource limit on what amount and how this cgroup can use memory.
hugetlb: ResourcesResource limit no how many hugepage TLBs this cgroup can use.
devices: ResourcesAllow or deny this cgroup to perform specific accesses to devices.
blkio: ResourcesThrottle bandwidth of block I/O by this cgroup.
rdma: ResourcesResource limit on how much this cgroup can use RDMA/IB devices.
net_prio: ResourcesPriority map of traffic originating from this cgroup.
net_cls: ResourcesTag network packets from this cgroup with a class ID.
pids: ResourcesResource limit on how many processes this cgroup can have.
freezer: ResourcesFreeze tasks in this cgroup.
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