Struct podman_api::models::Resources
source · [−]pub struct Resources {Show 31 fields
pub blkio_device_read_bps: Option<Vec<ThrottleDevice, Global>>,
pub blkio_device_read_i_ops: Option<Vec<ThrottleDevice, Global>>,
pub blkio_device_write_bps: Option<Vec<ThrottleDevice, Global>>,
pub blkio_device_write_i_ops: Option<Vec<ThrottleDevice, Global>>,
pub blkio_weight: Option<i64>,
pub blkio_weight_device: Option<Vec<WeightDevice, Global>>,
pub cgroup_parent: Option<String>,
pub cpu_count: Option<i64>,
pub cpu_percent: Option<i64>,
pub cpu_period: Option<i64>,
pub cpu_quota: Option<i64>,
pub cpu_realtime_period: Option<i64>,
pub cpu_realtime_runtime: Option<i64>,
pub cpu_shares: Option<i64>,
pub cpuset_cpus: Option<String>,
pub cpuset_mems: Option<String>,
pub device_cgroup_rules: Option<Vec<String, Global>>,
pub device_requests: Option<Vec<DeviceRequest, Global>>,
pub devices: Option<Vec<DeviceMapping, Global>>,
pub io_maximum_bandwidth: Option<i64>,
pub io_maximum_i_ops: Option<i64>,
pub kernel_memory: Option<i64>,
pub kernel_memory_tcp: Option<i64>,
pub memory: Option<i64>,
pub memory_reservation: Option<i64>,
pub memory_swap: Option<i64>,
pub memory_swappiness: Option<i64>,
pub nano_cpus: Option<i64>,
pub oom_kill_disable: Option<bool>,
pub pids_limit: Option<i64>,
pub ulimits: Option<Vec<Ulimit, Global>>,
}
Expand description
Resources contains container’s resources (cgroups config, ulimits…)
Fields
blkio_device_read_bps: Option<Vec<ThrottleDevice, Global>>
blkio_device_read_i_ops: Option<Vec<ThrottleDevice, Global>>
blkio_device_write_bps: Option<Vec<ThrottleDevice, Global>>
blkio_device_write_i_ops: Option<Vec<ThrottleDevice, Global>>
blkio_weight: Option<i64>
blkio_weight_device: Option<Vec<WeightDevice, Global>>
cgroup_parent: Option<String>
Applicable to UNIX platforms
cpu_count: Option<i64>
Applicable to Windows
cpu_percent: Option<i64>
cpu_period: Option<i64>
cpu_quota: Option<i64>
cpu_realtime_period: Option<i64>
cpu_realtime_runtime: Option<i64>
Applicable to all platforms
cpuset_cpus: Option<String>
cpuset_mems: Option<String>
device_cgroup_rules: Option<Vec<String, Global>>
device_requests: Option<Vec<DeviceRequest, Global>>
devices: Option<Vec<DeviceMapping, Global>>
io_maximum_bandwidth: Option<i64>
io_maximum_i_ops: Option<i64>
kernel_memory: Option<i64>
kernel_memory_tcp: Option<i64>
memory: Option<i64>
memory_reservation: Option<i64>
memory_swap: Option<i64>
memory_swappiness: Option<i64>
nano_cpus: Option<i64>
oom_kill_disable: Option<bool>
pids_limit: Option<i64>
ulimits: Option<Vec<Ulimit, Global>>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Resources
impl<'de> Deserialize<'de> for Resources
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Resources, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Resources, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for Resources
impl Serialize for Resources
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 Resources
Auto Trait Implementations
impl RefUnwindSafe for Resources
impl Send for Resources
impl Sync for Resources
impl Unpin for Resources
impl UnwindSafe for Resources
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)
🔬 This is a nightly-only experimental API. (
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