Enum cgroups_rs::devices::DeviceType
source · pub enum DeviceType {
All,
Char,
Block,
}Expand description
An enum holding the different types of devices that can be manipulated using this controller.
Variants§
All
The rule applies to all devices.
Char
The rule only applies to character devices.
Block
The rule only applies to block devices.
Implementations§
Trait Implementations§
source§impl Clone for DeviceType
impl Clone for DeviceType
source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
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 DeviceType
impl Debug for DeviceType
source§impl Default for DeviceType
impl Default for DeviceType
source§impl PartialEq<DeviceType> for DeviceType
impl PartialEq<DeviceType> for DeviceType
source§fn eq(&self, other: &DeviceType) -> bool
fn eq(&self, other: &DeviceType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.