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§

The combined total number of sectors on the disk.

The size of each sector, in bytes.

Provided Methods§

Calculates the requested sector from a given Sector variant.

Implementors§