pub struct PartitionInfo {
pub device_flags: DeviceFlag,
pub max_transfer_blocks: Option<NonZero<u32>>,
pub start_block_offset: Option<u64>,
pub block_count: u64,
pub type_guid: [u8; 16],
pub instance_guid: [u8; 16],
pub name: String,
pub flags: Option<u64>,
}Expand description
Information associated with a block device that is also a partition.
Fields§
§device_flags: DeviceFlagThe device flags reported by the underlying device.
max_transfer_blocks: Option<NonZero<u32>>§start_block_offset: Option<u64>This is None for partitions which have multiple logical extents, in which case the start_block_offset is not meaningful and potentially confusing.
block_count: u64§type_guid: [u8; 16]§instance_guid: [u8; 16]§name: String§flags: Option<u64>This can be None for partitions which are composed of multiple partitions (e.g. an overlay partition in GPT).
Trait 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 (const: unstable) · 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 PartitionInfo
impl Debug for PartitionInfo
Source§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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more