Trait DynRead
Source pub trait DynRead: MaybeSend + MaybeSync {
// Required methods
fn read_exact_at(
&mut self,
buf: BufMut,
pos: u64,
) -> Pin<Box<dyn MaybeSendFuture<Output = (Result<(), BoxedError>, BufMut)> + '_>>;
fn read_to_end_at(
&mut self,
buf: Vec<u8>,
pos: u64,
) -> Pin<Box<dyn MaybeSendFuture<Output = (Result<(), BoxedError>, Vec<u8>)> + '_>>;
fn size(
&self,
) -> Pin<Box<dyn MaybeSendFuture<Output = Result<u64, BoxedError>> + '_>>;
}
Expand description
Dyn compatible(object safety) version of Read.
Same as DynWrite.