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
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>
Implementors
impl<P: Protocol> Stream<Error> for StreamSocket<P>
impl Stream<Error> for StreamDescriptor