kvarn::application

Struct TcpStreamAsyncWrapper

source
pub struct TcpStreamAsyncWrapper { /* private fields */ }
Expand description

Wrapper for tokio_uring’s TcpStream, to implement AsyncRead and AsyncWrite by using buffers.

Trait Implementations§

source§

impl AsyncRead for TcpStreamAsyncWrapper

source§

fn poll_read( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut ReadBuf<'_>, ) -> Poll<Result<()>>

Attempts to read from the AsyncRead into buf. Read more