Struct podman_api::models::ContainerResourceConfig
source · [−]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, Global>>,
pub resource_limits: Option<LinuxResources>,
pub throttle_read_bps_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>,
pub throttle_read_iops_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>,
pub throttle_write_bps_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>,
pub throttle_write_iops_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>,
pub unified: Option<HashMap<String, String, RandomState>>,
pub weight_device: Option<HashMap<String, LinuxWeightDevice, RandomState>>,
}
Fields
cpu_period: Option<i64>
CPU period of the cpuset, determined by –cpus
cpu_quota: Option<i64>
CPU quota of the cpuset, determined by –cpus
oom_score_adj: Option<i64>
OOMScoreAdj adjusts the score used by the OOM killer to determine processes to kill for the container’s process. Optional.
r_limits: Option<Vec<PosixRlimit, Global>>
Rlimits are POSIX rlimits to apply to the container. Optional.
resource_limits: Option<LinuxResources>
throttle_read_bps_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>
IO read rate limit per cgroup per device, bytes per second
throttle_read_iops_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>
IO read rate limit per cgroup per device, IO per second
throttle_write_bps_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>
IO write rate limit per cgroup per device, bytes per second
throttle_write_iops_device: Option<HashMap<String, LinuxThrottleDevice, RandomState>>
IO write rate limit per cgroup per device, IO per second
unified: Option<HashMap<String, String, RandomState>>
CgroupConf are key-value options passed into the container runtime that are used to configure cgroup v2. Optional.
weight_device: Option<HashMap<String, LinuxWeightDevice, RandomState>>
Weight per cgroup per device, can override BlkioWeight
Trait Implementations
sourceimpl Clone for ContainerResourceConfig
impl Clone for ContainerResourceConfig
sourcefn clone(&self) -> ContainerResourceConfig
fn clone(&self) -> ContainerResourceConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ContainerResourceConfig
impl Debug for ContainerResourceConfig
sourceimpl<'de> Deserialize<'de> for ContainerResourceConfig
impl<'de> Deserialize<'de> for ContainerResourceConfig
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<ContainerResourceConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ContainerResourceConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ContainerResourceConfig> for ContainerResourceConfig
impl PartialEq<ContainerResourceConfig> for ContainerResourceConfig
sourcefn eq(&self, other: &ContainerResourceConfig) -> bool
fn eq(&self, other: &ContainerResourceConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ContainerResourceConfig) -> bool
fn ne(&self, other: &ContainerResourceConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for ContainerResourceConfig
impl Serialize for ContainerResourceConfig
sourcefn 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 ContainerResourceConfig
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more