pub trait ReadAtAsync {
// Required method
fn read_at<B>(&self, buf: B, offset: u64) -> impl Future<Output = Result<B>>
where AsyncReadBytes<B>: From<B>,
B: AsMut<[u8]> + Unpin + 'static;
// Provided method
fn offset(&self, offset: u64) -> ReadAtOffset<'_, Self>
where Self: Sized { ... }
}
Expand description
Required Methods§
Provided Methods§
sourcefn offset(&self, offset: u64) -> ReadAtOffset<'_, Self>where
Self: Sized,
fn offset(&self, offset: u64) -> ReadAtOffset<'_, Self>where
Self: Sized,
Get implementation of ReadAtAsync
that add specified offset to all attempted reads
Object Safety§
This trait is not object safe.