Struct oci_spec::runtime::LinuxDeviceCgroup
source · 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
)