pub struct Device {
pub format: Format,
pub major: Vec<u8>,
pub minor: Vec<u8>,
pub subunit: Option<Vec<u8>>,
}Expand description
A unix device.
The parsing for this could probably do with some work.
Fields§
§format: FormatThe device format.
major: Vec<u8>The device major identifier.
minor: Vec<u8>The device minor identifier.
subunit: Option<Vec<u8>>The device subunit identifier, if applicable.
Trait Implementations§
Source§impl Ord for Device
impl Ord for Device
Source§impl PartialOrd for Device
impl PartialOrd for Device
impl Eq for Device
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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