pub struct LinuxThrottleDevice {
pub major: Option<i64>,
pub minor: Option<i64>,
pub rate: Option<i32>,
}
Expand description
LinuxThrottleDevice : LinuxThrottleDevice struct holds a major:minor rate_per_second
pair
Fields§
§major: Option<i64>
Major is the device’s major number.
minor: Option<i64>
Minor is the device’s minor number.
rate: Option<i32>
Rate is the IO rate limit per cgroup per device
Implementations§
Source§impl LinuxThrottleDevice
impl LinuxThrottleDevice
Sourcepub fn new() -> LinuxThrottleDevice
pub fn new() -> LinuxThrottleDevice
LinuxThrottleDevice struct holds a major:minor rate_per_second
pair
Trait Implementations§
Source§impl Clone for LinuxThrottleDevice
impl Clone for LinuxThrottleDevice
Source§fn clone(&self) -> LinuxThrottleDevice
fn clone(&self) -> LinuxThrottleDevice
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 LinuxThrottleDevice
impl Debug for LinuxThrottleDevice
Source§impl Default for LinuxThrottleDevice
impl Default for LinuxThrottleDevice
Source§fn default() -> LinuxThrottleDevice
fn default() -> LinuxThrottleDevice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinuxThrottleDevice
impl<'de> Deserialize<'de> for LinuxThrottleDevice
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 LinuxThrottleDevice
impl PartialEq for LinuxThrottleDevice
Source§impl Serialize for LinuxThrottleDevice
impl Serialize for LinuxThrottleDevice
impl StructuralPartialEq for LinuxThrottleDevice
Auto Trait Implementations§
impl Freeze for LinuxThrottleDevice
impl RefUnwindSafe for LinuxThrottleDevice
impl Send for LinuxThrottleDevice
impl Sync for LinuxThrottleDevice
impl Unpin for LinuxThrottleDevice
impl UnwindSafe for LinuxThrottleDevice
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