pub struct BlkioSettings {
pub device_read_bps: Option<BTreeSet<BlkioLimit>>,
pub device_read_iops: Option<BTreeSet<BlkioLimit>>,
pub device_write_bps: Option<BTreeSet<BlkioLimit>>,
pub device_write_iops: Option<BTreeSet<BlkioLimit>>,
pub weight: Option<StringOrNum>,
pub weight_device: Option<BTreeSet<BlkioWeight>>,
}Expand description
Defines a set of configuration options to set block I/O limits for a service.
See more: https://docs.docker.com/reference/compose-file/services/#blkio_config
Fields§
§device_read_bps: Option<BTreeSet<BlkioLimit>>Limit read rate (bytes per second) from a device.
device_read_iops: Option<BTreeSet<BlkioLimit>>Limit read rate (IO per second) from a device.
device_write_bps: Option<BTreeSet<BlkioLimit>>Limit write rate (bytes per second) to a device.
device_write_iops: Option<BTreeSet<BlkioLimit>>Limit write rate (IO per second) to a device.
weight: Option<StringOrNum>Block IO weight (relative weight) for the service, between 10 and 1000.
weight_device: Option<BTreeSet<BlkioWeight>>Block IO weight (relative weight) for specific devices.
Trait Implementations§
Source§impl Clone for BlkioSettings
impl Clone for BlkioSettings
Source§fn clone(&self) -> BlkioSettings
fn clone(&self) -> BlkioSettings
Returns a duplicate 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 BlkioSettings
impl Debug for BlkioSettings
Source§impl Default for BlkioSettings
impl Default for BlkioSettings
Source§fn default() -> BlkioSettings
fn default() -> BlkioSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlkioSettingswhere
BlkioSettings: Default,
impl<'de> Deserialize<'de> for BlkioSettingswhere
BlkioSettings: Default,
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 BlkioSettings
impl PartialEq for BlkioSettings
Source§impl Serialize for BlkioSettings
impl Serialize for BlkioSettings
impl Eq for BlkioSettings
impl StructuralPartialEq for BlkioSettings
Auto Trait Implementations§
impl Freeze for BlkioSettings
impl RefUnwindSafe for BlkioSettings
impl Send for BlkioSettings
impl Sync for BlkioSettings
impl Unpin for BlkioSettings
impl UnsafeUnpin for BlkioSettings
impl UnwindSafe for BlkioSettings
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.