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>,
}
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 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<'de> Deserialize<'de> for LinuxDevice
impl<'de> Deserialize<'de> for LinuxDevice
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LinuxDevice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LinuxDevice, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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