pub struct PartitionInfo {
pub block_range: Option<Range<u64>>,
pub type_guid: [u8; 16],
pub instance_guid: [u8; 16],
pub name: Option<String>,
pub flags: u64,
}
Expand description
Information associated with the block device.
Fields§
§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: Option<String>
§flags: u64
Trait Implementations§
Source§impl Clone for PartitionInfo
impl Clone for PartitionInfo
Source§fn clone(&self) -> PartitionInfo
fn clone(&self) -> PartitionInfo
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 moreAuto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)