Trait io::BlockIo

source ·
pub trait BlockIo {
    fn block_size(&self) -> usize;
Expand description

A parent trait used to specify the block size (in bytes) of I/O transfers (read and write operations). See its use in BlockReader and BlockWriter.

Required Methods§

Returns the size in bytes of a single block (i.e., sector), the minimum granularity of I/O transfers.

Implementations on Foreign Types§