Trait AsyncReadRentAt

Source
pub trait AsyncReadRentAt {
    // Required method
    fn read_at<T: IoBufMut>(
        &mut self,
        buf: T,
        pos: usize,
    ) -> impl Future<Output = BufResult<usize, T>>;
}
Expand description

AsyncReadRentAt: async read with a ownership of a buffer and a position

Required Methods§

Source

fn read_at<T: IoBufMut>( &mut self, buf: T, pos: usize, ) -> impl Future<Output = BufResult<usize, T>>

Same as pread(2)

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.

Implementations on Foreign Types§

Source§

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

Source§

fn read_at<T: IoBufMut>( &mut self, buf: T, pos: usize, ) -> impl Future<Output = BufResult<usize, T>>

Implementors§