pub struct ResourceLimits {
pub cpu_period: Option<DockerCpuPeriod>,
pub cpu_period_percent: Option<u8>,
pub cpu_time_limit: Option<DockerCpuTimeLimit>,
pub memory_limit_bytes: Option<i64>,
pub disk_limit_bytes: Option<i64>,
}Fields§
§cpu_period: Option<DockerCpuPeriod>Period of cpu time (de/serializes as microseconds)
cpu_period_percent: Option<u8>Proportion of period used by container
cpu_time_limit: Option<DockerCpuTimeLimit>Total cpu time allocated to container
memory_limit_bytes: Option<i64>Maximum amount of memory container can use (in bytes)
disk_limit_bytes: Option<i64>Maximum disk space container can use (in bytes)
Implementations§
Trait Implementations§
Source§impl Clone for ResourceLimits
impl Clone for ResourceLimits
Source§fn clone(&self) -> ResourceLimits
fn clone(&self) -> ResourceLimits
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 ResourceLimits
impl Debug for ResourceLimits
Source§impl Default for ResourceLimits
impl Default for ResourceLimits
Source§fn default() -> ResourceLimits
fn default() -> ResourceLimits
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceLimits
impl<'de> Deserialize<'de> for ResourceLimits
Source§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
Source§impl PartialEq for ResourceLimits
impl PartialEq for ResourceLimits
Source§impl Serialize for ResourceLimits
impl Serialize for ResourceLimits
Source§impl Structable for ResourceLimits
impl Structable for ResourceLimits
Source§fn definition(&self) -> StructDef<'_>
fn definition(&self) -> StructDef<'_>
Returns the struct’s definition. Read more
Source§impl Valuable for ResourceLimits
impl Valuable for ResourceLimits
impl Eq for ResourceLimits
impl StructuralPartialEq for ResourceLimits
Auto Trait Implementations§
impl Freeze for ResourceLimits
impl RefUnwindSafe for ResourceLimits
impl Send for ResourceLimits
impl Sync for ResourceLimits
impl Unpin for ResourceLimits
impl UnwindSafe for ResourceLimits
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.