Struct cgroups_rs::DeviceResource[][src]

pub struct DeviceResource {
    pub allow: bool,
    pub devtype: DeviceType,
    pub major: i64,
    pub minor: i64,
    pub access: Vec<DevicePermissions>,
}

A device resource that can be allowed or denied access to.

Fields

allow: bool

If true, access to the device is allowed, otherwise it’s denied.

devtype: DeviceType

'c' for character device, 'b' for block device; or 'a' for all devices.

major: i64

The major number of the device.

minor: i64

The minor number of the device.

access: Vec<DevicePermissions>

Sequence of 'r', 'w' or 'm', each denoting read, write or mknod permissions.

Trait Implementations

impl Clone for DeviceResource[src]

impl Debug for DeviceResource[src]

impl Default for DeviceResource[src]

impl Eq for DeviceResource[src]

impl PartialEq<DeviceResource> for DeviceResource[src]

impl StructuralEq for DeviceResource[src]

impl StructuralPartialEq for DeviceResource[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.