Struct podman_rest_client::models::LinuxResources  
source · pub struct LinuxResources {
    pub block_io: Option<Box<LinuxBlockIo>>,
    pub cpu: Option<Box<LinuxCpu>>,
    pub devices: Option<Vec<LinuxDeviceCgroup>>,
    pub hugepage_limits: Option<Vec<LinuxHugepageLimit>>,
    pub memory: Option<Box<LinuxMemory>>,
    pub network: Option<Box<LinuxNetwork>>,
    pub pids: Option<Box<LinuxPids>>,
    pub rdma: Option<HashMap<String, LinuxRdma>>,
    pub unified: Option<HashMap<String, String>>,
}Expand description
LinuxResources : LinuxResources has container runtime resource constraints
Fields§
§block_io: Option<Box<LinuxBlockIo>>§cpu: Option<Box<LinuxCpu>>§devices: Option<Vec<LinuxDeviceCgroup>>Devices configures the device allowlist.
hugepage_limits: Option<Vec<LinuxHugepageLimit>>Hugetlb limits (in bytes). Default to reservation limits if supported.
memory: Option<Box<LinuxMemory>>§network: Option<Box<LinuxNetwork>>§pids: Option<Box<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.
Implementations§
source§impl LinuxResources
 
impl LinuxResources
sourcepub fn new() -> LinuxResources
 
pub fn new() -> LinuxResources
LinuxResources has container runtime resource constraints
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 Default for LinuxResources
 
impl Default for LinuxResources
source§fn default() -> LinuxResources
 
fn default() -> LinuxResources
Returns the “default value” for a type. Read more
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§fn eq(&self, other: &LinuxResources) -> bool
 
fn eq(&self, other: &LinuxResources) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)