Add try_read_buf to net::windows::named_pipe::NamedPipeClient #4602
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
E-easy
Call for participation: Experience needed to fix: Easy / not much
E-help-wanted
Call for participation: Help is requested to fix this issue.
M-net
Module: tokio/net
Is your feature request related to a problem? Please describe.
The
net::TcpStream
does have atry_read_buf
method that takes abytes::buf::BufMut
to read data in.The
net::windows::named_pipe::NamedPipeClient
is missing such method.Describe the solution you'd like
A
try_read_buf
method with the same signature as theTcpStream
.Describe alternatives you've considered
Alternatively the
read_buf
from theio::AsyncReadExt
trait may be used, that one is async, whiletry_read_buf
usually isn't.Additional context
@Darksonn asked me to submit this issue.
The text was updated successfully, but these errors were encountered: