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", so 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 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§