Struct oci_spec::runtime::LinuxDevice
source · pub struct LinuxDevice { /* private fields */ }
Expand description
LinuxDevice represents the mknod information for a Linux special device file.
Implementations§
source§impl LinuxDevice
impl LinuxDevice
sourcepub fn typ(&self) -> LinuxDeviceType
pub fn typ(&self) -> LinuxDeviceType
Device type, block, char, etc..
source§impl LinuxDevice
impl LinuxDevice
sourcepub fn typ_mut(&mut self) -> &mut LinuxDeviceType
pub fn typ_mut(&mut self) -> &mut LinuxDeviceType
Device type, block, char, etc..
sourcepub fn file_mode_mut(&mut self) -> &mut Option<u32>
pub fn file_mode_mut(&mut self) -> &mut Option<u32>
FileMode permission bits for the device.
source§impl LinuxDevice
impl LinuxDevice
sourcepub fn set_typ(&mut self, val: LinuxDeviceType) -> &mut Self
pub fn set_typ(&mut self, val: LinuxDeviceType) -> &mut Self
Device type, block, char, etc..
sourcepub fn set_file_mode(&mut self, val: Option<u32>) -> &mut Self
pub fn set_file_mode(&mut self, val: Option<u32>) -> &mut Self
FileMode permission bits for the device.
Trait Implementations§
source§impl Clone for LinuxDevice
impl Clone for LinuxDevice
source§fn clone(&self) -> LinuxDevice
fn clone(&self) -> LinuxDevice
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 LinuxDevice
impl Debug for LinuxDevice
source§impl Default for LinuxDevice
impl Default for LinuxDevice
source§fn default() -> LinuxDevice
fn default() -> LinuxDevice
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LinuxDevice
impl<'de> Deserialize<'de> for LinuxDevice
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 LinuxDevice
impl PartialEq for LinuxDevice
source§impl Serialize for LinuxDevice
impl Serialize for LinuxDevice
impl Eq for LinuxDevice
impl StructuralPartialEq for LinuxDevice
Auto Trait Implementations§
impl Freeze for LinuxDevice
impl RefUnwindSafe for LinuxDevice
impl Send for LinuxDevice
impl Sync for LinuxDevice
impl Unpin for LinuxDevice
impl UnwindSafe for LinuxDevice
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
)