Struct podman_api_stubs::models::ContainerResourceConfig [−][src]
pub struct ContainerResourceConfig {
pub cpu_period: Option<i64>,
pub cpu_quota: Option<i64>,
pub oom_score_adj: Option<i64>,
pub r_limits: Option<Vec<PosixRlimit>>,
pub resource_limits: Option<LinuxResources>,
pub throttle_read_bps_device: Option<HashMap<String, LinuxThrottleDevice>>,
pub throttle_read_iops_device: Option<HashMap<String, LinuxThrottleDevice>>,
pub throttle_write_bps_device: Option<HashMap<String, LinuxThrottleDevice>>,
pub throttle_write_iops_device: Option<HashMap<String, LinuxThrottleDevice>>,
pub unified: Option<HashMap<String, String>>,
pub weight_device: Option<HashMap<String, LinuxWeightDevice>>,
}
Fields
cpu_period: Option<i64>
cpu_quota: Option<i64>
oom_score_adj: Option<i64>
r_limits: Option<Vec<PosixRlimit>>
resource_limits: Option<LinuxResources>
throttle_read_bps_device: Option<HashMap<String, LinuxThrottleDevice>>
throttle_read_iops_device: Option<HashMap<String, LinuxThrottleDevice>>
throttle_write_bps_device: Option<HashMap<String, LinuxThrottleDevice>>
throttle_write_iops_device: Option<HashMap<String, LinuxThrottleDevice>>
unified: Option<HashMap<String, String>>
weight_device: Option<HashMap<String, LinuxWeightDevice>>
Implementations
pub fn set_throttle_read_bps_device(
&mut self,
throttle_read_bps_device: HashMap<String, LinuxThrottleDevice>
)
pub fn with_throttle_read_bps_device(
self,
throttle_read_bps_device: HashMap<String, LinuxThrottleDevice>
) -> ContainerResourceConfig
pub fn set_throttle_read_iops_device(
&mut self,
throttle_read_iops_device: HashMap<String, LinuxThrottleDevice>
)
pub fn with_throttle_read_iops_device(
self,
throttle_read_iops_device: HashMap<String, LinuxThrottleDevice>
) -> ContainerResourceConfig
pub fn set_throttle_write_bps_device(
&mut self,
throttle_write_bps_device: HashMap<String, LinuxThrottleDevice>
)
pub fn with_throttle_write_bps_device(
self,
throttle_write_bps_device: HashMap<String, LinuxThrottleDevice>
) -> ContainerResourceConfig
pub fn set_throttle_write_iops_device(
&mut self,
throttle_write_iops_device: HashMap<String, LinuxThrottleDevice>
)
pub fn with_throttle_write_iops_device(
self,
throttle_write_iops_device: HashMap<String, LinuxThrottleDevice>
) -> ContainerResourceConfig
pub fn with_weight_device(
self,
weight_device: HashMap<String, LinuxWeightDevice>
) -> ContainerResourceConfig
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ContainerResourceConfig
impl Send for ContainerResourceConfig
impl Sync for ContainerResourceConfig
impl Unpin for ContainerResourceConfig
impl UnwindSafe for ContainerResourceConfig
Blanket Implementations
Mutably borrows from an owned value. Read more