pub struct LinuxDevice {
pub file_mode: Option<u32>,
pub gid: Option<u32>,
pub major: Option<i64>,
pub minor: Option<i64>,
pub path: Option<String>,
pub type: Option<String>,
pub uid: Option<u32>,
}
Available on crate feature
v5
only.Expand description
LinuxDevice represents the mknod information for a Linux special device file
Fields§
§file_mode: Option<u32>
§gid: Option<u32>
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<u32>
UID of the device.
Trait Implementations§
Source§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
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