pub struct LinuxDeviceCgroup {
pub access: Option<String>,
pub allow: Option<bool>,
pub major: Option<i64>,
pub minor: Option<i64>,
pub type_: Option<String>,
}
Expand description
LinuxDeviceCgroup represents a device rule for the devices specified to the device controller
Fields§
§access: Option<String>
Cgroup access permissions format, rwm.
allow: Option<bool>
Allow or deny
major: Option<i64>
Major is the device’s major number.
minor: Option<i64>
Minor is the device’s minor number.
type_: Option<String>
Device type, block, char, etc.
Trait Implementations§
Source§impl Clone for LinuxDeviceCgroup
impl Clone for LinuxDeviceCgroup
Source§fn clone(&self) -> LinuxDeviceCgroup
fn clone(&self) -> LinuxDeviceCgroup
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LinuxDeviceCgroup
impl Debug for LinuxDeviceCgroup
Source§impl<'de> Deserialize<'de> for LinuxDeviceCgroup
impl<'de> Deserialize<'de> for LinuxDeviceCgroup
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LinuxDeviceCgroup, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LinuxDeviceCgroup, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LinuxDeviceCgroup
impl PartialEq for LinuxDeviceCgroup
Source§impl Serialize for LinuxDeviceCgroup
impl Serialize for LinuxDeviceCgroup
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LinuxDeviceCgroup
Auto Trait Implementations§
impl Freeze for LinuxDeviceCgroup
impl RefUnwindSafe for LinuxDeviceCgroup
impl Send for LinuxDeviceCgroup
impl Sync for LinuxDeviceCgroup
impl Unpin for LinuxDeviceCgroup
impl UnwindSafe for LinuxDeviceCgroup
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