pub struct DeviceDescriptor {Show 22 fields
pub enumerator: String,
pub bus_type: Option<String>,
pub bus_version: Option<String>,
pub device: String,
pub device_path: Option<String>,
pub raw: String,
pub description: String,
pub error: Option<String>,
pub partition_table_type: Option<String>,
pub size: u64,
pub block_size: u32,
pub logical_block_size: u32,
pub mountpoints: Vec<MountPoint>,
pub mountpoint_labels: Vec<String>,
pub is_readonly: bool,
pub is_system: bool,
pub is_card: bool,
pub is_scsi: bool,
pub is_usb: bool,
pub is_virtual: bool,
pub is_removable: bool,
pub is_uas: Option<bool>,
}Expand description
Device Description
Fields§
§enumerator: String§bus_type: Option<String>§bus_version: Option<String>§device: String§device_path: Option<String>§raw: String§description: String§error: Option<String>§partition_table_type: Option<String>§size: u64§block_size: u32§logical_block_size: u32§mountpoints: Vec<MountPoint>§mountpoint_labels: Vec<String>§is_readonly: boolDevice is read-only
is_system: boolDevice is a system drive
is_card: boolDevice is an SD-card
is_scsi: boolConnected via the Small Computer System Interface (SCSI)
is_usb: boolConnected via Universal Serial Bus (USB)
is_virtual: boolDevice is a virtual storage device
is_removable: boolDevice is removable from the running system
is_uas: Option<bool>Connected via the USB Attached SCSI (UAS)
Trait Implementations§
Source§impl Clone for DeviceDescriptor
impl Clone for DeviceDescriptor
Source§fn clone(&self) -> DeviceDescriptor
fn clone(&self) -> DeviceDescriptor
Returns a duplicate 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 DeviceDescriptor
impl Debug for DeviceDescriptor
Auto Trait Implementations§
impl Freeze for DeviceDescriptor
impl RefUnwindSafe for DeviceDescriptor
impl Send for DeviceDescriptor
impl Sync for DeviceDescriptor
impl Unpin for DeviceDescriptor
impl UnwindSafe for DeviceDescriptor
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