Struct oci_spec::runtime::LinuxWeightDevice
source · pub struct LinuxWeightDevice { /* private fields */ }
Expand description
LinuxWeightDevice struct holds a major:minor weight
pair for
weightDevice.
Implementations§
source§impl LinuxWeightDevice
impl LinuxWeightDevice
sourcepub fn leaf_weight(&self) -> Option<u16>
pub fn leaf_weight(&self) -> Option<u16>
LeafWeight is the bandwidth rate for the device while competing with the cgroup’s child cgroups, CFQ scheduler only.
Trait Implementations§
source§impl Clone for LinuxWeightDevice
impl Clone for LinuxWeightDevice
source§fn clone(&self) -> LinuxWeightDevice
fn clone(&self) -> LinuxWeightDevice
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 LinuxWeightDevice
impl Debug for LinuxWeightDevice
source§impl Default for LinuxWeightDevice
impl Default for LinuxWeightDevice
source§fn default() -> LinuxWeightDevice
fn default() -> LinuxWeightDevice
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LinuxWeightDevice
impl<'de> Deserialize<'de> for LinuxWeightDevice
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 LinuxWeightDevice
impl PartialEq for LinuxWeightDevice
source§fn eq(&self, other: &LinuxWeightDevice) -> bool
fn eq(&self, other: &LinuxWeightDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LinuxWeightDevice
impl Serialize for LinuxWeightDevice
impl Copy for LinuxWeightDevice
impl Eq for LinuxWeightDevice
impl StructuralPartialEq for LinuxWeightDevice
Auto Trait Implementations§
impl Freeze for LinuxWeightDevice
impl RefUnwindSafe for LinuxWeightDevice
impl Send for LinuxWeightDevice
impl Sync for LinuxWeightDevice
impl Unpin for LinuxWeightDevice
impl UnwindSafe for LinuxWeightDevice
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
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)