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 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 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§fn eq(&self, other: &LinuxThrottleDevice) -> bool
fn eq(&self, other: &LinuxThrottleDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)