Trait compio_io::AsyncReadAt
source · pub trait AsyncReadAt {
// Required method
async fn read_at<T: IoBufMut>(
&self,
buf: T,
pos: u64,
) -> BufResult<usize, T>;
// Provided method
async fn read_vectored_at<T: IoVectoredBufMut>(
&self,
buf: T,
pos: u64,
) -> BufResult<usize, T> { ... }
}
Expand description
§AsyncReadAt
Async read with a ownership of a buffer and a position
Required Methods§
Provided Methods§
sourceasync fn read_vectored_at<T: IoVectoredBufMut>(
&self,
buf: T,
pos: u64,
) -> BufResult<usize, T>
async fn read_vectored_at<T: IoVectoredBufMut>( &self, buf: T, pos: u64, ) -> BufResult<usize, T>
Like AsyncRead::read_vectored
, except that it reads at a specified
position.
Object Safety§
This trait is not object safe.