Trait disk_types::SectorExt
source · pub trait SectorExt {
fn get_sectors(&self) -> u64;
fn get_sector_size(&self) -> u64;
fn get_sector(&self, sector: Sector) -> u64 { ... }
}
Expand description
Trait for getting and sectors from a device.
Required Methods§
sourcefn get_sectors(&self) -> u64
fn get_sectors(&self) -> u64
The combined total number of sectors on the disk.
sourcefn get_sector_size(&self) -> u64
fn get_sector_size(&self) -> u64
The size of each sector, in bytes.
Provided Methods§
sourcefn get_sector(&self, sector: Sector) -> u64
fn get_sector(&self, sector: Sector) -> u64
Calculates the requested sector from a given Sector
variant.