Struct tokio::io::Repeat [−][src]
pub struct Repeat { /* fields omitted */ }Expand description
An async reader which yields one byte over and over and over and over and over and…
This struct is generally created by calling repeat. Please
see the documentation of repeat() for more details.
This is an asynchronous version of std::io::Repeat.
Trait Implementations
impl AsyncRead for Repeat[src]
impl AsyncRead for Repeat[src]fn poll_read(
self: Pin<&mut Self>,
_: &mut Context<'_>,
buf: &mut [u8]
) -> Poll<Result<usize>>[src]
fn poll_read(
self: Pin<&mut Self>,
_: &mut Context<'_>,
buf: &mut [u8]
) -> Poll<Result<usize>>[src]Attempts to read from the AsyncRead into buf. Read more
unsafe fn prepare_uninitialized_buffer(
&self,
buf: &mut [MaybeUninit<u8>]
) -> bool[src]
unsafe fn prepare_uninitialized_buffer(
&self,
buf: &mut [MaybeUninit<u8>]
) -> bool[src]Prepares an uninitialized buffer to be safe to pass to read. Returns
true if the supplied buffer was zeroed out. Read more