#[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: u64
Total blocks used on the device.
block_size: u64
Size of each block in bytes.
partition_count: u32
Number of partitions in the map.
reserved: u32
Reserved for future use.
guid: PartitionGuid
Device GUID.
Trait Implementations§
Source§impl Clone for PartitionMap
impl Clone for PartitionMap
Source§fn clone(&self) -> PartitionMap
fn clone(&self) -> PartitionMap
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 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 PartitionMapwhere
u64: IntoBytes,
u32: IntoBytes,
PartitionGuid: IntoBytes,
(): PaddingFree<PartitionMap, { _ }>,
impl IntoBytes for PartitionMapwhere
u64: IntoBytes,
u32: IntoBytes,
PartitionGuid: IntoBytes,
(): PaddingFree<PartitionMap, { _ }>,
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§impl PartialEq for PartitionMap
impl PartialEq for PartitionMap
Source§impl TryFromBytes for PartitionMap
impl TryFromBytes for PartitionMap
§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,
§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,
§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
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
)