pub trait PositionRead:
Send
+ Sync
+ Unpin
+ 'static {
// Required method
fn read_at(
&self,
offset: u64,
size: usize,
) -> impl Future<Output = Result<Buffer>> + MaybeSend;
}Expand description
PositionRead is used to implement oio::Read based on positioned reads.
Services that implement PositionRead must support position-independent
reads. size is the maximum number of bytes to read, and implementations may
return fewer bytes. Returning an empty buffer means EOF.
Required Methods§
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.