Trait vortex_serde::io::VortexReadAt

source ·
pub trait VortexReadAt: Send + Sync {
    // Required methods
    fn read_at_into(
        &self,
        pos: u64,
        buffer: BytesMut,
    ) -> impl Future<Output = Result<BytesMut>> + Send;
    fn size(&self) -> impl Future<Output = u64>;

    // Provided method
    fn performance_hint(&self) -> usize { ... }
}

Required Methods§

source

fn read_at_into( &self, pos: u64, buffer: BytesMut, ) -> impl Future<Output = Result<BytesMut>> + Send

source

fn size(&self) -> impl Future<Output = u64>

Provided Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl VortexReadAt for Buffer

source§

async fn read_at_into(&self, pos: u64, buffer: BytesMut) -> Result<BytesMut>

source§

async fn size(&self) -> u64

source§

impl VortexReadAt for Vec<u8>

source§

fn read_at_into( &self, pos: u64, buffer: BytesMut, ) -> impl Future<Output = Result<BytesMut>>

source§

async fn size(&self) -> u64

source§

impl VortexReadAt for [u8]

source§

async fn read_at_into(&self, pos: u64, buffer: BytesMut) -> Result<BytesMut>

source§

async fn size(&self) -> u64

source§

impl<R: ?Sized + VortexReadAt> VortexReadAt for &R

source§

fn read_at_into( &self, pos: u64, buffer: BytesMut, ) -> impl Future<Output = Result<BytesMut>> + Send

source§

fn performance_hint(&self) -> usize

source§

async fn size(&self) -> u64

source§

impl<T: VortexReadAt> VortexReadAt for Arc<T>

source§

fn read_at_into( &self, pos: u64, buffer: BytesMut, ) -> impl Future<Output = Result<BytesMut>> + Send

source§

fn performance_hint(&self) -> usize

source§

async fn size(&self) -> u64

Implementors§