Skip to main content

AsyncStream

Trait AsyncStream 

Source
pub trait AsyncStream:
    AsyncRead
    + AsyncWrite
    + 'static
    + Send
    + Sync {
    // Provided method
    fn poll_read_alloc(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
    ) -> Poll<IoResult<Vec<u8>>> { ... }
}

Provided Methods§

Source

fn poll_read_alloc( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<IoResult<Vec<u8>>>

Implementors§

Source§

impl<S: AsyncRead + AsyncWrite + Sync + Send + 'static> AsyncStream for S