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§

source

async fn read_at<T: IoBufMut>(&self, buf: T, pos: u64) -> BufResult<usize, T>

Like AsyncRead::read, except that it reads at a specified position.

Provided Methods§

source

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.

Implementations on Foreign Types§

source§

impl AsyncReadAt for Vec<u8>

source§

async fn read_at<T: IoBufMut>(&self, buf: T, pos: u64) -> BufResult<usize, T>

source§

async fn read_vectored_at<T: IoVectoredBufMut>( &self, buf: T, pos: u64, ) -> BufResult<usize, T>

source§

impl AsyncReadAt for [u8]

source§

async fn read_at<T: IoBufMut>(&self, buf: T, pos: u64) -> BufResult<usize, T>

source§

impl<A: AsyncReadAt + ?Sized> AsyncReadAt for &A

source§

async fn read_at<T: IoBufMut>(&self, buf: T, pos: u64) -> BufResult<usize, T>

source§

async fn read_vectored_at<T: IoVectoredBufMut>( &self, buf: T, pos: u64, ) -> BufResult<usize, T>

source§

impl<A: AsyncReadAt + ?Sized> AsyncReadAt for &mut A

source§

async fn read_at<T: IoBufMut>(&self, buf: T, pos: u64) -> BufResult<usize, T>

source§

async fn read_vectored_at<T: IoVectoredBufMut>( &self, buf: T, pos: u64, ) -> BufResult<usize, T>

source§

impl<A: AsyncReadAt + ?Sized> AsyncReadAt for Box<A>

source§

async fn read_at<T: IoBufMut>(&self, buf: T, pos: u64) -> BufResult<usize, T>

source§

async fn read_vectored_at<T: IoVectoredBufMut>( &self, buf: T, pos: u64, ) -> BufResult<usize, T>

source§

impl<A: AsyncReadAt + ?Sized> AsyncReadAt for Rc<A>

source§

async fn read_at<T: IoBufMut>(&self, buf: T, pos: u64) -> BufResult<usize, T>

source§

async fn read_vectored_at<T: IoVectoredBufMut>( &self, buf: T, pos: u64, ) -> BufResult<usize, T>

source§

impl<A: AsyncReadAt + ?Sized> AsyncReadAt for Arc<A>

source§

async fn read_at<T: IoBufMut>(&self, buf: T, pos: u64) -> BufResult<usize, T>

source§

async fn read_vectored_at<T: IoVectoredBufMut>( &self, buf: T, pos: u64, ) -> BufResult<usize, T>

source§

impl<const LEN: usize> AsyncReadAt for [u8; LEN]

source§

async fn read_at<T: IoBufMut>(&self, buf: T, pos: u64) -> BufResult<usize, T>

Implementors§