pub struct LinuxDevice {
pub file_mode: Option<i32>,
pub gid: Option<i32>,
pub major: Option<i64>,
pub minor: Option<i64>,
pub path: Option<String>,
pub type: Option<String>,
pub uid: Option<i32>,
}
Expand description
LinuxDevice : LinuxDevice represents the mknod information for a Linux special device file
Fields§
§file_mode: Option<i32>
The bits have the same definition on all systems, so that information about files can be moved from one system to another portably. Not all bits apply to all systems. The only required bit is [ModeDir] for directories.
gid: Option<i32>
Gid of the device.
major: Option<i64>
Major is the device’s major number.
minor: Option<i64>
Minor is the device’s minor number.
path: Option<String>
Path to the device.
type: Option<String>
Device type, block, char, etc.
uid: Option<i32>
UID of the device.
Implementations§
Source§impl LinuxDevice
impl LinuxDevice
Sourcepub fn new() -> LinuxDevice
pub fn new() -> LinuxDevice
LinuxDevice represents the mknod information for a Linux special device file
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 PartialEq for LinuxDevice
impl PartialEq for LinuxDevice
Source§impl Serialize for LinuxDevice
impl Serialize 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