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
)