pub struct DeviceCgroup {
pub allow: bool,
pub device_type: Option<String>,
pub major: Option<i64>,
pub minor: Option<i64>,
pub access: Option<String>,
}Expand description
Device cgroup rule.
Fields§
§allow: boolAllow or deny.
device_type: Option<String>Device type (a, c, b).
major: Option<i64>Major number.
minor: Option<i64>Minor number.
access: Option<String>Access rights (r, w, m).
Trait Implementations§
Source§impl Clone for DeviceCgroup
impl Clone for DeviceCgroup
Source§fn clone(&self) -> DeviceCgroup
fn clone(&self) -> DeviceCgroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeviceCgroup
impl Debug for DeviceCgroup
Source§impl<'de> Deserialize<'de> for DeviceCgroup
impl<'de> Deserialize<'de> for DeviceCgroup
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
Auto Trait Implementations§
impl Freeze for DeviceCgroup
impl RefUnwindSafe for DeviceCgroup
impl Send for DeviceCgroup
impl Sync for DeviceCgroup
impl Unpin for DeviceCgroup
impl UnsafeUnpin for DeviceCgroup
impl UnwindSafe for DeviceCgroup
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