Struct cgroups_rs::BlkIoDeviceThrottleResource
source · pub struct BlkIoDeviceThrottleResource {
pub major: u64,
pub minor: u64,
pub rate: u64,
}Expand description
Provides the ability to throttle a device (both byte/sec, and IO op/s)
Fields§
§major: u64The major number of the device.
minor: u64The minor number of the device.
rate: u64The rate.
Trait Implementations§
source§impl Clone for BlkIoDeviceThrottleResource
impl Clone for BlkIoDeviceThrottleResource
source§fn clone(&self) -> BlkIoDeviceThrottleResource
fn clone(&self) -> BlkIoDeviceThrottleResource
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 BlkIoDeviceThrottleResource
impl Debug for BlkIoDeviceThrottleResource
source§impl Default for BlkIoDeviceThrottleResource
impl Default for BlkIoDeviceThrottleResource
source§fn default() -> BlkIoDeviceThrottleResource
fn default() -> BlkIoDeviceThrottleResource
Returns the “default value” for a type. Read more
source§impl PartialEq<BlkIoDeviceThrottleResource> for BlkIoDeviceThrottleResource
impl PartialEq<BlkIoDeviceThrottleResource> for BlkIoDeviceThrottleResource
source§fn eq(&self, other: &BlkIoDeviceThrottleResource) -> bool
fn eq(&self, other: &BlkIoDeviceThrottleResource) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for BlkIoDeviceThrottleResource
impl StructuralEq for BlkIoDeviceThrottleResource
impl StructuralPartialEq for BlkIoDeviceThrottleResource
Auto Trait Implementations§
impl RefUnwindSafe for BlkIoDeviceThrottleResource
impl Send for BlkIoDeviceThrottleResource
impl Sync for BlkIoDeviceThrottleResource
impl Unpin for BlkIoDeviceThrottleResource
impl UnwindSafe for BlkIoDeviceThrottleResource
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