kvarn::prelude::internals

Struct ReadToAsync

source
pub struct ReadToAsync<R>(/* private fields */);
Expand description

Helper struct for read_to_async.

Trait Implementations§

source§

impl<R> AsyncRead for ReadToAsync<R>
where R: Read + Unpin,

source§

fn poll_read( self: Pin<&mut ReadToAsync<R>>, _cx: &mut Context<'_>, buf: &mut ReadBuf<'_>, ) -> Poll<Result<(), Error>>

Attempts to read from the AsyncRead into buf. Read more