[−][src]Enum cgroups_rs::devices::DevicePermissions
An enum with the permissions that can be allowed/denied to the control group.
Variants
Permission to read from the device.
Permission to write to the device.
Permission to execute the mknod(2) system call with the device's major and minor numbers.
That is, the permission to create a special file that refers to the device node.
Implementations
impl DevicePermissions[src]
pub fn to_char(&self) -> char[src]
Convert a DevicePermissions into the character that the kernel recognizes.
pub fn from_char(c: char) -> Option<DevicePermissions>[src]
Convert a char to a DevicePermission if there is such a mapping.
pub fn is_valid(s: &str) -> bool[src]
Checks whether the string is a valid descriptor of DevicePermissions.
pub fn all() -> Vec<DevicePermissions>[src]
Returns a Vec will all the permissions that a device can have.
pub fn from_str(s: &str) -> Result<Vec<DevicePermissions>>[src]
Convert a string into DevicePermissions.
Trait Implementations
impl Clone for DevicePermissions[src]
pub fn clone(&self) -> DevicePermissions[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for DevicePermissions[src]
impl Debug for DevicePermissions[src]
impl Eq for DevicePermissions[src]
impl PartialEq<DevicePermissions> for DevicePermissions[src]
pub fn eq(&self, other: &DevicePermissions) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for DevicePermissions[src]
impl StructuralPartialEq for DevicePermissions[src]
Auto Trait Implementations
impl RefUnwindSafe for DevicePermissions[src]
impl Send for DevicePermissions[src]
impl Sync for DevicePermissions[src]
impl Unpin for DevicePermissions[src]
impl UnwindSafe for DevicePermissions[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,