pub struct Repeat { /* private fields */ }
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
sourceimpl AsyncRead for Repeat
impl AsyncRead for Repeat
sourceunsafe fn prepare_uninitialized_buffer(
&self,
_buf: &mut [MaybeUninit<u8>]
) -> bool
unsafe fn prepare_uninitialized_buffer(
&self,
_buf: &mut [MaybeUninit<u8>]
) -> bool
Prepares an uninitialized buffer to be safe to pass to read
. Returns
true
if the supplied buffer was zeroed out. Read more
Auto Trait Implementations
impl RefUnwindSafe for Repeat
impl Send for Repeat
impl Sync for Repeat
impl Unpin for Repeat
impl UnwindSafe for Repeat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more