Trait conch_runtime::env::AsyncIoEnvironment [] [src]

pub trait AsyncIoEnvironment {
    type Read: AsyncRead;
    type WriteAll: Future<Item = (), Error = IoError>;
    fn read_async(&mut self, fd: FileDesc) -> Self::Read;
fn write_all(&mut self, fd: FileDesc, data: Vec<u8>) -> Self::WriteAll;
fn write_all_best_effort(&mut self, fd: FileDesc, data: Vec<u8>); }

An interface for performing async operations on FileDesc handles.

Associated Types

An async/futures-aware Read adapter around a FileDesc.

An future that represents writing data into a FileDesc.

Required Methods

Creates a futures-aware adapter to read data from a FileDesc asynchronously.

Creates a future for writing data into a FileDesc.

Asynchronously write the contents of data to a FileDesc in the background on a best effort basis (e.g. the implementation can give up due to any (appropriately) unforceen errors like broken pipes).

Implementors