Trait asyncio::Stream [] [src]

pub trait Stream<E>: AsIoContext + Send + 'static {
    fn async_read_some<F>(&self, buf: &mut [u8], handler: F) -> F::Output where F: Handler<usize, E>;
    fn async_write_some<F>(&self, buf: &[u8], handler: F) -> F::Output where F: Handler<usize, E>;
    fn read_some(&self, buf: &mut [u8]) -> Result<usize, E>;
    fn write_some(&self, buf: &[u8]) -> Result<usize, E>;
}

Required Methods

Implementors