Trait disk::DiskGetLen

source ·
pub trait DiskGetLen {
    // Required method
    fn get_len(&self) -> Result<u64>;
}
Expand description

A trait for getting the length of a disk image or raw block device.

Required Methods§

source

fn get_len(&self) -> Result<u64>

Get the current length of the disk in bytes.

Implementations on Foreign Types§

source§

impl DiskGetLen for File

source§

fn get_len(&self) -> Result<u64>

Implementors§