pub struct PartitionInfo {
    pub device_flags: Flag,
    pub max_transfer_blocks: Option<NonZero<u32>>,
    pub block_range: Option<Range<u64>>,
    pub type_guid: [u8; 16],
    pub instance_guid: [u8; 16],
    pub name: String,
    pub flags: u64,
}Expand description
Information associated with a block device that is also a partition.
Fields§
§device_flags: FlagThe device flags reported by the underlying device.
max_transfer_blocks: Option<NonZero<u32>>§block_range: Option<Range<u64>>If block_range is None, the partition is a volume and may not be contiguous.
In this case, the server will use the get_volume_info method to get the count of assigned
slices and use that (along with the slice and block sizes) to determine the block count.
type_guid: [u8; 16]§instance_guid: [u8; 16]§name: String§flags: u64Trait Implementations§
Source§impl Clone for PartitionInfo
 
impl Clone for PartitionInfo
Source§fn clone(&self) -> PartitionInfo
 
fn clone(&self) -> PartitionInfo
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 Default for PartitionInfo
 
impl Default for PartitionInfo
Source§fn default() -> PartitionInfo
 
fn default() -> PartitionInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PartitionInfo
impl RefUnwindSafe for PartitionInfo
impl Send for PartitionInfo
impl Sync for PartitionInfo
impl Unpin for PartitionInfo
impl UnwindSafe for PartitionInfo
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