pub struct LinuxResources {
pub block_io: Option<LinuxBlockIo>,
pub cpu: Option<LinuxCpu>,
pub devices: Option<Vec<LinuxDeviceCgroup>>,
pub hugepage_limits: Option<Vec<LinuxHugepageLimit>>,
pub memory: Option<LinuxMemory>,
pub network: Option<LinuxNetwork>,
pub pids: Option<LinuxPids>,
pub rdma: Option<HashMap<String, LinuxRdma>>,
pub unified: Option<HashMap<String, String>>,
}
Expand description
LinuxResources has container runtime resource constraints
Fields§
§block_io: Option<LinuxBlockIo>
§cpu: Option<LinuxCpu>
§devices: Option<Vec<LinuxDeviceCgroup>>
Devices configures the device allowlist.
hugepage_limits: Option<Vec<LinuxHugepageLimit>>
Hugetlb limit (in bytes)
memory: Option<LinuxMemory>
§network: Option<LinuxNetwork>
§pids: Option<LinuxPids>
§rdma: Option<HashMap<String, LinuxRdma>>
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.
unified: Option<HashMap<String, String>>
Unified resources.
Trait Implementations§
Source§impl Clone for LinuxResources
impl Clone for LinuxResources
Source§fn clone(&self) -> LinuxResources
fn clone(&self) -> LinuxResources
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LinuxResources
impl Debug for LinuxResources
Source§impl<'de> Deserialize<'de> for LinuxResources
impl<'de> Deserialize<'de> for LinuxResources
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LinuxResources, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LinuxResources, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LinuxResources
impl PartialEq for LinuxResources
Source§impl Serialize for LinuxResources
impl Serialize for LinuxResources
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LinuxResources
Auto Trait Implementations§
impl Freeze for LinuxResources
impl RefUnwindSafe for LinuxResources
impl Send for LinuxResources
impl Sync for LinuxResources
impl Unpin for LinuxResources
impl UnwindSafe for LinuxResources
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