Trait vortex_io::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<()>>

Object Safety§

This trait is not object safe.

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§

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

source§

async fn shutdown(&mut self) -> 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§