pub trait Reader: Send + Sync {
// Required methods
fn path(&self) -> &Path;
fn block_size(&self) -> usize;
fn size<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_range<'life0, 'async_trait>(
&'life0 self,
range: Range<usize>
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn path(&self) -> &Path
sourcefn block_size(&self) -> usize
fn block_size(&self) -> usize
Suggest optimal I/O size per storage device.