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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.