pub struct DiskLayerMetadata {
pub disk_id: Option<[u8; 16]>,
pub sector_size: u32,
pub sector_count: u64,
pub physical_sector_size: u32,
pub unmap_behavior: UnmapBehavior,
pub optimal_unmap_sectors: u32,
pub read_only: bool,
pub can_read_cache: bool,
pub is_fua_respected: bool,
}
Expand description
Metadata of a particular layer, collected from various LayerIo
APIs.
Fields§
§disk_id: Option<[u8; 16]>
§sector_size: u32
§sector_count: u64
§physical_sector_size: u32
§unmap_behavior: UnmapBehavior
§optimal_unmap_sectors: u32
§read_only: bool
§can_read_cache: bool
§is_fua_respected: bool
Trait Implementations§
Source§impl Clone for DiskLayerMetadata
impl Clone for DiskLayerMetadata
Source§fn clone(&self) -> DiskLayerMetadata
fn clone(&self) -> DiskLayerMetadata
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 DiskLayerMetadata
impl RefUnwindSafe for DiskLayerMetadata
impl Send for DiskLayerMetadata
impl Sync for DiskLayerMetadata
impl Unpin for DiskLayerMetadata
impl UnwindSafe for DiskLayerMetadata
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