Struct Empty
struct Empty { ... }
Empty ignores any data written via AsyncWrite, and will always be empty
(returning zero bytes) when read via AsyncRead.
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.
Implementations
impl AsyncBufRead for Empty
fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<&[u8]>>fn consume(self: Pin<&mut Self>, _: usize)
impl AsyncRead for Empty
fn poll_read(self: Pin<&mut Self>, cx: &mut Context<'_>, _: &mut ReadBuf<'_>) -> Poll<Result<()>>
impl AsyncSeek for Empty
fn start_seek(self: Pin<&mut Self>, _position: SeekFrom) -> Result<()>fn poll_complete(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<u64>>
impl AsyncWrite for Empty
fn poll_write(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8]) -> Poll<Result<usize>>fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Error>>fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Error>>fn is_write_vectored(self: &Self) -> boolfn poll_write_vectored(self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>]) -> Poll<Result<usize, Error>>
impl Debug for Empty
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Freeze for Empty
impl RefUnwindSafe for Empty
impl Send for Empty
impl Sync for Empty
impl Unpin for Empty
impl UnsafeUnpin for Empty
impl UnwindSafe for Empty
impl<R> AsyncBufReadExt for Empty
impl<R> AsyncReadExt for Empty
impl<S> AsyncSeekExt for Empty
impl<T> Any for Empty
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Empty
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Empty
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for Empty
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for Empty
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Empty
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Empty
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>