pub trait AsyncReadAt {
// Required method
async fn read_at<T>(&self, buf: T, pos: u64) -> BufResult<usize, T>
where T: IoBufMut;
// Provided method
async fn read_vectored_at<T>(&self, buf: T, pos: u64) -> BufResult<usize, T>
where T: IoVectoredBufMut { ... }
}Available on crate feature
io only.Expand description
§AsyncReadAt
Async read with a ownership of a buffer and a position
Required Methods§
Provided Methods§
Sourceasync fn read_vectored_at<T>(&self, buf: T, pos: u64) -> BufResult<usize, T>where
T: IoVectoredBufMut,
async fn read_vectored_at<T>(&self, buf: T, pos: u64) -> BufResult<usize, T>where
T: IoVectoredBufMut,
Like AsyncRead::read_vectored, except that it reads at a specified
position.
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 AsyncReadAt for [u8]
impl AsyncReadAt for [u8]
Source§impl<A> AsyncReadAt for &Awhere
A: AsyncReadAt + ?Sized,
impl<A> AsyncReadAt for &Awhere
A: AsyncReadAt + ?Sized,
Source§impl<A> AsyncReadAt for &mut Awhere
A: AsyncReadAt + ?Sized,
impl<A> AsyncReadAt for &mut Awhere
A: AsyncReadAt + ?Sized,
Implementors§
impl AsyncReadAt for File
impl<A> AsyncReadAt for Vec<u8, A>where
A: Allocator,
impl<R, A> AsyncReadAt for Box<R, A>
Available on crate feature
allocator_api only.impl<R, A> AsyncReadAt for Rc<R, A>
Available on crate feature
allocator_api only.impl<R, A> AsyncReadAt for Arc<R, A>
Available on crate feature
allocator_api only.