Skip to main content

VortexWrite

Trait VortexWrite 

Source
pub trait VortexWrite {
    // Required methods
    fn write_all<B: IoBuf>(
        &mut self,
        buffer: B,
    ) -> impl Future<Output = Result<B>>;
    fn flush(&mut self) -> impl Future<Output = Result<()>>;
    fn shutdown(&mut self) -> impl Future<Output = Result<()>>;
}

Required Methods§

Source

fn write_all<B: IoBuf>(&mut self, buffer: B) -> impl Future<Output = Result<B>>

Source

fn flush(&mut self) -> impl Future<Output = Result<()>>

Source

fn shutdown(&mut self) -> impl Future<Output = Result<()>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl VortexWrite for Vec<u8>

Source§

fn write_all<B: IoBuf>(&mut self, buffer: B) -> impl Future<Output = Result<B>>

Source§

fn flush(&mut self) -> impl Future<Output = Result<()>>

Source§

fn shutdown(&mut self) -> impl Future<Output = Result<()>>

Source§

impl VortexWrite for File

Source§

async fn write_all<B: IoBuf>(&mut self, buffer: B) -> Result<B>

Source§

fn flush(&mut self) -> impl Future<Output = Result<()>>

Source§

fn shutdown(&mut self) -> impl Future<Output = Result<()>>

Source§

impl VortexWrite for File

Source§

async fn write_all<B: IoBuf>(&mut self, buffer: B) -> Result<B>

Source§

async fn flush(&mut self) -> Result<()>

Source§

async fn shutdown(&mut self) -> Result<()>

Source§

impl VortexWrite for ByteBufferMut

Source§

fn write_all<B: IoBuf>(&mut self, buffer: B) -> impl Future<Output = Result<B>>

Source§

fn flush(&mut self) -> impl Future<Output = Result<()>>

Source§

fn shutdown(&mut self) -> impl Future<Output = Result<()>>

Source§

impl<T> VortexWrite for Cursor<T>
where Cursor<T>: Write,

Source§

fn write_all<B: IoBuf>(&mut self, buffer: B) -> impl Future<Output = Result<B>>

Source§

fn flush(&mut self) -> impl Future<Output = Result<()>>

Source§

fn shutdown(&mut self) -> impl Future<Output = Result<()>>

Source§

impl<W: VortexWrite> VortexWrite for &mut W

Source§

fn write_all<B: IoBuf>(&mut self, buffer: B) -> impl Future<Output = Result<B>>

Source§

fn flush(&mut self) -> impl Future<Output = Result<()>>

Source§

fn shutdown(&mut self) -> impl Future<Output = Result<()>>

Source§

impl<W: VortexWrite> VortexWrite for Cursor<W>

Source§

fn write_all<B: IoBuf>(&mut self, buffer: B) -> impl Future<Output = Result<B>>

Source§

fn flush(&mut self) -> impl Future<Output = Result<()>>

Source§

fn shutdown(&mut self) -> impl Future<Output = Result<()>>

Implementors§

Source§

impl VortexWrite for ObjectStoreWrite

Source§

impl<W: AsyncWrite + Unpin> VortexWrite for AsyncWriteAdapter<W>

Source§

impl<W: VortexWrite> VortexWrite for Compat<W>

Compatibility adapter for VortexWrite implementations that are based on Tokio.