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.Expand description
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>> + '_>>
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".