pub struct Empty { /* private fields */ }
Expand description
An async reader which is always at EOF.
This struct is generally created by calling empty
. Please see
the documentation of empty()
for more details.
This is an asynchronous version of std::io::empty
.
Trait Implementations
sourceimpl AsyncBufRead for Empty
impl AsyncBufRead for Empty
sourceimpl AsyncRead for Empty
impl AsyncRead for Empty
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 Empty
impl Send for Empty
impl Sync for Empty
impl Unpin for Empty
impl UnwindSafe for Empty
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