pub struct Partition {
pub device_path: String,
pub name: String,
pub start_offset: u64,
pub size_bytes: u64,
pub partition_type: Option<String>,
pub mount_point: Option<String>,
pub filesystem: Option<String>,
pub label: Option<String>,
}Expand description
A partition (slice/volume) within a PhysicalDisk.
Fields§
§device_path: StringOS path to open for raw access to just this partition.
name: StringShort kernel identifier (disk0s1, sda1, nvme0n1p1).
start_offset: u64Byte offset of the partition’s first sector from the start of the disk.
size_bytes: u64Partition length in bytes.
partition_type: Option<String>Partition type as the OS names it (GPT type GUID/name, MBR type byte, or platform content hint), when known.
mount_point: Option<String>Current mount point, when the partition is mounted.
filesystem: Option<String>Mounted filesystem type, when known.
label: Option<String>Volume label, when known.
Trait Implementations§
impl Eq for Partition
impl StructuralPartialEq for Partition
Auto Trait Implementations§
impl Freeze for Partition
impl RefUnwindSafe for Partition
impl Send for Partition
impl Sync for Partition
impl Unpin for Partition
impl UnsafeUnpin for Partition
impl UnwindSafe for Partition
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