pub struct LinuxDeviceCgroup { /* private fields */ }
Expand description
Represents a device rule for the devices specified to the device controller
Implementations§
Source§impl LinuxDeviceCgroup
impl LinuxDeviceCgroup
Sourcepub fn typ_mut(&mut self) -> &mut Option<LinuxDeviceType>
pub fn typ_mut(&mut self) -> &mut Option<LinuxDeviceType>
Device type, block, char, etc.
Sourcepub fn access_mut(&mut self) -> &mut Option<String>
pub fn access_mut(&mut self) -> &mut Option<String>
Cgroup access premissions format, rwm.
Source§impl LinuxDeviceCgroup
impl LinuxDeviceCgroup
Sourcepub fn set_typ(&mut self, val: Option<LinuxDeviceType>) -> &mut Self
pub fn set_typ(&mut self, val: Option<LinuxDeviceType>) -> &mut Self
Device type, block, char, etc.
Sourcepub fn set_access(&mut self, val: Option<String>) -> &mut Self
pub fn set_access(&mut self, val: Option<String>) -> &mut Self
Cgroup access premissions format, rwm.
Trait Implementations§
Source§impl Clone for LinuxDeviceCgroup
impl Clone for LinuxDeviceCgroup
Source§fn clone(&self) -> LinuxDeviceCgroup
fn clone(&self) -> LinuxDeviceCgroup
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 LinuxDeviceCgroup
impl Debug for LinuxDeviceCgroup
Source§impl Default for LinuxDeviceCgroup
impl Default for LinuxDeviceCgroup
Source§fn default() -> LinuxDeviceCgroup
fn default() -> LinuxDeviceCgroup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinuxDeviceCgroup
impl<'de> Deserialize<'de> for LinuxDeviceCgroup
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
Source§impl Display for LinuxDeviceCgroup
impl Display for LinuxDeviceCgroup
This ToString trait is automatically implemented for any type which implements the Display trait. As such, ToString shouldn’t be implemented directly: Display should be implemented instead, and you get the ToString implementation for free.
Source§impl From<&LinuxDevice> for LinuxDeviceCgroup
impl From<&LinuxDevice> for LinuxDeviceCgroup
Source§fn from(linux_device: &LinuxDevice) -> LinuxDeviceCgroup
fn from(linux_device: &LinuxDevice) -> LinuxDeviceCgroup
Converts to this type from the input type.
Source§impl PartialEq for LinuxDeviceCgroup
impl PartialEq for LinuxDeviceCgroup
Source§impl Serialize for LinuxDeviceCgroup
impl Serialize for LinuxDeviceCgroup
impl Eq for LinuxDeviceCgroup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)