Trait io::BlockIo

source ·
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§

source

fn block_size(&self) -> usize

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

Implementations on Foreign Types§

source§

impl<B> BlockIo for &Bwhere B: BlockIo + ?Sized,

source§

impl<B> BlockIo for Box<B>where B: BlockIo + ?Sized,

source§

impl<B> BlockIo for &mut Bwhere B: BlockIo + ?Sized,

Implementors§

source§

impl<'io, IO, L, B> BlockIo for LockableIo<'io, IO, L, B>where IO: BlockIo + 'io + ?Sized, L: for<'a> Lockable<'a, IO> + ?Sized, B: Borrow<L>,

source§

impl<IO> BlockIo for Reader<IO>where IO: BlockIo,

source§

impl<IO> BlockIo for ReaderWriter<IO>where IO: BlockIo,

source§

impl<IO> BlockIo for Writer<IO>where IO: BlockIo,

source§

impl<R> BlockIo for ByteReaderWrapper<R>where R: BlockReader,

source§

impl<RW> BlockIo for ByteReaderWriterWrapper<RW>where RW: BlockReader + BlockWriter,

source§

impl<RW> BlockIo for ByteWriterWrapper<RW>where RW: BlockReader + BlockWriter,