Trait photonio_base::io::ReadAtExt
source · [−]pub trait ReadAtExt {
type ReadExactAt<'a>: Future<Output = Result<()>> + 'a
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>: Future<Output = Result<()>> + 'a
where
Self: 'a
type ReadExactAt<'a>: Future<Output = Result<()>> + 'a
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
.