vortex_serde::io

Trait VortexRead

Source
pub trait VortexRead {
    // Required method
    fn read_into(
        &mut self,
        buffer: BytesMut,
    ) -> impl Future<Output = Result<BytesMut>>;
}

Required Methods§

Source

fn read_into( &mut self, buffer: BytesMut, ) -> impl Future<Output = Result<BytesMut>>

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.

Implementations on Foreign Types§

Source§

impl VortexRead for BytesMut

Source§

async fn read_into(&mut self, buffer: BytesMut) -> Result<BytesMut>

Source§

impl VortexRead for File

Source§

async fn read_into(&mut self, buffer: BytesMut) -> Result<BytesMut>

Source§

impl<R: VortexReadAt> VortexRead for Cursor<R>

Source§

async fn read_into(&mut self, buffer: BytesMut) -> Result<BytesMut>

Implementors§