Struct Empty
#[must_use = "readers do nothing unless polled"]
pub struct Empty { /* private fields */ }
Reader for the [empty()] function.
Trait Implementations
impl AsyncBufRead for Empty
fn poll_fill_buf(self: Pin<&mut Self>, &mut Context<'_>) -> Poll<Result<&[u8]>>fn consume(self: Pin<&mut Self>, usize)
impl AsyncRead for Empty
fn poll_read(self: Pin<&mut Self>, &mut Context<'_>, &mut [u8]) -> Poll<Result<usize>>
impl Debug for Empty
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
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
Blanket Implementations
impl<R> AsyncBufReadExt for Empty
where
R: AsyncBufRead + ?Sized,
impl<R> AsyncReadExt for Empty
where
R: AsyncRead + ?Sized,
impl<T> Any for Empty
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Empty
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Empty
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Empty
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for Empty
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Empty
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Empty
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>