pub trait BlockIo {
// Required method
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§
sourcefn block_size(&self) -> usize
fn block_size(&self) -> usize
Returns the size in bytes of a single block (i.e., sector), the minimum granularity of I/O transfers.