pub unsafe trait DynRead:
MaybeSend
+ MaybeSync
+ Sealed {
// Required methods
fn read_exact_at(
&mut self,
buf: BufMut,
pos: u64,
) -> Pin<Box<dyn MaybeSendFuture<Output = (Result<(), Error>, BufMut)> + '_>>;
fn read_to_end_at(
&mut self,
buf: Vec<u8>,
pos: u64,
) -> Pin<Box<dyn MaybeSendFuture<Output = (Result<(), Error>, Vec<u8>)> + '_>>;
fn size(
&self,
) -> Pin<Box<dyn MaybeSendFuture<Output = Result<u64, Error>> + '_>>;
}Available on crate feature
alloc only.