Trait photonio_uring::io::ReadAtExt
source · pub trait ReadAtExt {
type ReadExactAt<'a>: 'a + Future<Output = Result<(), Error>>
where
Self: 'a;
fn read_exact_at<'a>(
&'a self,
buf: &'a mut [u8],
pos: u64
) -> Self::ReadExactAt<'a>;
}
Expand description
Provides extension methods for ReadAt
.
Required Associated Types
sourcetype ReadExactAt<'a>: 'a + Future<Output = Result<(), Error>>
where
Self: 'a
type ReadExactAt<'a>: 'a + Future<Output = Result<(), Error>>
where
Self: 'a
A future that resolves to the result of Self::read_exact_at
.
Required Methods
sourcefn read_exact_at<'a>(
&'a self,
buf: &'a mut [u8],
pos: u64
) -> Self::ReadExactAt<'a>
fn read_exact_at<'a>(
&'a self,
buf: &'a mut [u8],
pos: u64
) -> Self::ReadExactAt<'a>
Reads the exact number of bytes from this object at pos
to fill buf
.