pub struct LinuxResourcesBuilder { /* private fields */ }Expand description
Builder for LinuxResources.
Implementations§
Source§impl LinuxResourcesBuilder
impl LinuxResourcesBuilder
Sourcepub fn devices<VALUE: Into<Vec<LinuxDeviceCgroup>>>(self, value: VALUE) -> Self
pub fn devices<VALUE: Into<Vec<LinuxDeviceCgroup>>>(self, value: VALUE) -> Self
Devices configures the device allowlist.
Sourcepub fn memory<VALUE: Into<LinuxMemory>>(self, value: VALUE) -> Self
pub fn memory<VALUE: Into<LinuxMemory>>(self, value: VALUE) -> Self
Memory restriction configuration.
Sourcepub fn cpu<VALUE: Into<LinuxCpu>>(self, value: VALUE) -> Self
pub fn cpu<VALUE: Into<LinuxCpu>>(self, value: VALUE) -> Self
CPU resource restriction configuration.
Sourcepub fn block_io<VALUE: Into<LinuxBlockIo>>(self, value: VALUE) -> Self
pub fn block_io<VALUE: Into<LinuxBlockIo>>(self, value: VALUE) -> Self
BlockIO restriction configuration.
Sourcepub fn hugepage_limits<VALUE: Into<Vec<LinuxHugepageLimit>>>(
self,
value: VALUE,
) -> Self
pub fn hugepage_limits<VALUE: Into<Vec<LinuxHugepageLimit>>>( self, value: VALUE, ) -> Self
Hugetlb limit (in bytes).
Sourcepub fn network<VALUE: Into<LinuxNetwork>>(self, value: VALUE) -> Self
pub fn network<VALUE: Into<LinuxNetwork>>(self, value: VALUE) -> Self
Network restriction configuration.
Sourcepub fn rdma<VALUE: Into<HashMap<String, LinuxRdma>>>(self, value: VALUE) -> Self
pub fn rdma<VALUE: Into<HashMap<String, LinuxRdma>>>(self, value: VALUE) -> Self
Rdma resource restriction configuration. Limits are a set of key value pairs that define RDMA resource limits, where the key is device name and value is resource limits.
Sourcepub fn unified<VALUE: Into<HashMap<String, String>>>(self, value: VALUE) -> Self
pub fn unified<VALUE: Into<HashMap<String, String>>>(self, value: VALUE) -> Self
Unified resources.