Struct lsblk::BlockDevice
source · pub struct BlockDevice {
pub name: String,
pub diskseq: Option<String>,
pub path: Option<String>,
pub uuid: Option<String>,
pub partuuid: Option<String>,
pub label: Option<String>,
pub partlabel: Option<String>,
pub id: Option<String>,
}Expand description
A representation of a block-device
Fields§
§name: Stringthe filename of the block-device.
If the drive is deemed to be storage by the kernel, this is usually prefixed by one of the followings:
sdhdvdnvmemmcblkloop
diskseq: Option<String>The diskseq of the device as in /dev/disk/by-diskseq/.
path: Option<String>The path (not the filesystem!) of the device as in /dev/disk/by-path.
uuid: Option<String>The device UUID.
partuuid: Option<String>The UUID of a partition (not the same as device UUID).
label: Option<String>The label of the partition.
partlabel: Option<String>The partition label (not the same as label), as in /dev/disk/by-partlabel)
id: Option<String>The id of the device as in /dev/disk/by-id/.
Implementations§
Trait Implementations§
source§impl Clone for BlockDevice
impl Clone for BlockDevice
source§fn clone(&self) -> BlockDevice
fn clone(&self) -> BlockDevice
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 BlockDevice
impl Debug for BlockDevice
source§impl Default for BlockDevice
impl Default for BlockDevice
source§fn default() -> BlockDevice
fn default() -> BlockDevice
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BlockDevice
impl RefUnwindSafe for BlockDevice
impl Send for BlockDevice
impl Sync for BlockDevice
impl Unpin for BlockDevice
impl UnwindSafe for BlockDevice
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