#[repr(C)]pub struct PartitionMap {
pub block_count: u64,
pub block_size: u64,
pub partition_count: u32,
pub reserved: u32,
pub guid: PartitionGuid,
}Expand description
ZBI_TYPE_DRV_PARTITION_MAP payload. This header is immediately followed by an array of the corresponding zbi_partition_t.
Fields§
§block_count: u64Total blocks used on the device.
block_size: u64Size of each block in bytes.
partition_count: u32Number of partitions in the map.
reserved: u32Reserved for future use.
guid: PartitionGuidDevice GUID.
Trait Implementations§
Source§impl Clone for PartitionMap
impl Clone for PartitionMap
Source§fn clone(&self) -> PartitionMap
fn clone(&self) -> PartitionMap
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 Debug for PartitionMap
impl Debug for PartitionMap
Source§impl FromBytes for PartitionMap
impl FromBytes for PartitionMap
Source§impl FromZeros for PartitionMap
impl FromZeros for PartitionMap
Source§impl IntoBytes for PartitionMap
impl IntoBytes for PartitionMap
Source§impl PartialEq for PartitionMap
impl PartialEq for PartitionMap
Source§impl TryFromBytes for PartitionMap
impl TryFromBytes for PartitionMap
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for PartitionMap
impl Eq for PartitionMap
impl StructuralPartialEq for PartitionMap
Auto Trait Implementations§
impl Freeze for PartitionMap
impl RefUnwindSafe for PartitionMap
impl Send for PartitionMap
impl Sync for PartitionMap
impl Unpin for PartitionMap
impl UnwindSafe for PartitionMap
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