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 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 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§fn eq(&self, other: &LinuxDeviceCgroup) -> bool
fn eq(&self, other: &LinuxDeviceCgroup) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LinuxDeviceCgroup
impl Serialize for LinuxDeviceCgroup
source§impl ToString for LinuxDeviceCgroup
impl ToString for LinuxDeviceCgroup
impl Eq for LinuxDeviceCgroup
impl StructuralPartialEq for LinuxDeviceCgroup
Auto Trait Implementations§
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