pub struct InspectBlkioWeightDevice {
pub path: Option<String>,
pub weight: Option<i32>,
}
Expand description
InspectBlkioWeightDevice : InspectBlkioWeightDevice holds information about the relative weight of an individual device node. Weights are used in the I/O scheduler to give relative priority to some accesses.
Fields§
§path: Option<String>
Path is the path to the device this applies to.
weight: Option<i32>
Weight is the relative weight the scheduler will use when scheduling I/O.
Implementations§
source§impl InspectBlkioWeightDevice
impl InspectBlkioWeightDevice
sourcepub fn new() -> InspectBlkioWeightDevice
pub fn new() -> InspectBlkioWeightDevice
InspectBlkioWeightDevice holds information about the relative weight of an individual device node. Weights are used in the I/O scheduler to give relative priority to some accesses.
Trait Implementations§
source§impl Clone for InspectBlkioWeightDevice
impl Clone for InspectBlkioWeightDevice
source§fn clone(&self) -> InspectBlkioWeightDevice
fn clone(&self) -> InspectBlkioWeightDevice
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 InspectBlkioWeightDevice
impl Debug for InspectBlkioWeightDevice
source§impl Default for InspectBlkioWeightDevice
impl Default for InspectBlkioWeightDevice
source§fn default() -> InspectBlkioWeightDevice
fn default() -> InspectBlkioWeightDevice
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InspectBlkioWeightDevice
impl<'de> Deserialize<'de> for InspectBlkioWeightDevice
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InspectBlkioWeightDevice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InspectBlkioWeightDevice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for InspectBlkioWeightDevice
impl PartialEq for InspectBlkioWeightDevice
source§fn eq(&self, other: &InspectBlkioWeightDevice) -> bool
fn eq(&self, other: &InspectBlkioWeightDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InspectBlkioWeightDevice
impl Serialize for InspectBlkioWeightDevice
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 InspectBlkioWeightDevice
Auto Trait Implementations§
impl Freeze for InspectBlkioWeightDevice
impl RefUnwindSafe for InspectBlkioWeightDevice
impl Send for InspectBlkioWeightDevice
impl Sync for InspectBlkioWeightDevice
impl Unpin for InspectBlkioWeightDevice
impl UnwindSafe for InspectBlkioWeightDevice
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
)