[][src]Trait tokio_io::AsyncWriteExt

pub trait AsyncWriteExt: AsyncWrite {
    fn write<'a>(&'a mut self, src: &'a [u8]) -> Write<'a, Self>
    where
        Self: Unpin
, { ... }
fn write_all<'a>(&'a mut self, src: &'a [u8]) -> WriteAll<'a, Self>
    where
        Self: Unpin
, { ... }
fn flush(&mut self) -> Flush<Self>
    where
        Self: Unpin
, { ... }
fn shutdown(&mut self) -> Shutdown<Self>
    where
        Self: Unpin
, { ... } }

An extension trait which adds utility methods to AsyncWrite types.

Provided methods

fn write<'a>(&'a mut self, src: &'a [u8]) -> Write<'a, Self> where
    Self: Unpin

Write a buffer into this writter, returning how many bytes were written.

fn write_all<'a>(&'a mut self, src: &'a [u8]) -> WriteAll<'a, Self> where
    Self: Unpin

Attempt to write an entire buffer into this writter.

fn flush(&mut self) -> Flush<Self> where
    Self: Unpin

Flush the contents of this writer.

fn shutdown(&mut self) -> Shutdown<Self> where
    Self: Unpin

Shutdown this writer.

Loading content...

Implementors

impl<W: AsyncWrite + ?Sized> AsyncWriteExt for W[src]

Loading content...