pub struct InspectBlkioThrottleDevice {
pub path: Option<String>,
pub rate: Option<i32>,
}
Expand description
InspectBlkioThrottleDevice : InspectBlkioThrottleDevice holds information about a speed cap for a device node. This cap applies to a specific operation (read, write, etc) on the given node.
Fields§
§path: Option<String>
Path is the path to the device this applies to.
rate: Option<i32>
Rate is the maximum rate. It is in either bytes per second or iops per second, determined by where it is used - documentation will indicate which is appropriate.
Implementations§
source§impl InspectBlkioThrottleDevice
impl InspectBlkioThrottleDevice
sourcepub fn new() -> InspectBlkioThrottleDevice
pub fn new() -> InspectBlkioThrottleDevice
InspectBlkioThrottleDevice holds information about a speed cap for a device node. This cap applies to a specific operation (read, write, etc) on the given node.
Trait Implementations§
source§impl Clone for InspectBlkioThrottleDevice
impl Clone for InspectBlkioThrottleDevice
source§fn clone(&self) -> InspectBlkioThrottleDevice
fn clone(&self) -> InspectBlkioThrottleDevice
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 InspectBlkioThrottleDevice
impl Debug for InspectBlkioThrottleDevice
source§impl Default for InspectBlkioThrottleDevice
impl Default for InspectBlkioThrottleDevice
source§fn default() -> InspectBlkioThrottleDevice
fn default() -> InspectBlkioThrottleDevice
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InspectBlkioThrottleDevice
impl<'de> Deserialize<'de> for InspectBlkioThrottleDevice
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InspectBlkioThrottleDevice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InspectBlkioThrottleDevice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for InspectBlkioThrottleDevice
impl PartialEq for InspectBlkioThrottleDevice
source§fn eq(&self, other: &InspectBlkioThrottleDevice) -> bool
fn eq(&self, other: &InspectBlkioThrottleDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InspectBlkioThrottleDevice
impl Serialize for InspectBlkioThrottleDevice
source§fn 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 InspectBlkioThrottleDevice
Auto Trait Implementations§
impl Freeze for InspectBlkioThrottleDevice
impl RefUnwindSafe for InspectBlkioThrottleDevice
impl Send for InspectBlkioThrottleDevice
impl Sync for InspectBlkioThrottleDevice
impl Unpin for InspectBlkioThrottleDevice
impl UnwindSafe for InspectBlkioThrottleDevice
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
)