Struct IntoAsyncRead

#[must_use = "readers do nothing unless polled"]
pub struct IntoAsyncRead<St>
where
    St: TryStream<Error = Error>,
    St::Ok: AsRef<[u8]>, { /* private fields */ }

Reader for the into_async_read method.

Trait Implementations

impl<'__pin, St> Unpin for IntoAsyncRead<St> where PinnedFieldsOf<__Origin<'__pin, St>>: Unpin, St: TryStream<Error = Error>, St::Ok: AsRef<[u8]>,

impl<St> AsyncBufRead for IntoAsyncRead<St> where St: TryStream<Error = Error>, St::Ok: AsRef<[u8]>,

fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<&[u8]>>
fn consume(self: Pin<&mut Self>, amount: usize)

impl<St> AsyncRead for IntoAsyncRead<St> where St: TryStream<Error = Error>, St::Ok: AsRef<[u8]>,

fn poll_read(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut [u8]) -> Poll<Result<usize>>

impl<St> AsyncWrite for IntoAsyncRead<St> where St: TryStream<Error = Error> + AsyncWrite, St::Ok: AsRef<[u8]>,

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<()>>
fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>

impl<St> Debug for IntoAsyncRead<St> where St: TryStream<Error = Error> + Debug, St::Ok: AsRef<[u8]> + Debug,

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<St> Freeze for IntoAsyncRead<St> where St: Freeze, ReadState<<St as TryStream>::Ok>: Freeze,

impl<St> RefUnwindSafe for IntoAsyncRead<St> where St: RefUnwindSafe, ReadState<<St as TryStream>::Ok>: RefUnwindSafe,

impl<St> Send for IntoAsyncRead<St> where St: Send, ReadState<<St as TryStream>::Ok>: Send,

impl<St> Sync for IntoAsyncRead<St> where St: Sync, ReadState<<St as TryStream>::Ok>: Sync,

impl<St> UnsafeUnpin for IntoAsyncRead<St> where St: UnsafeUnpin, ReadState<<St as TryStream>::Ok>: UnsafeUnpin,

impl<St> UnwindSafe for IntoAsyncRead<St> where St: UnwindSafe, ReadState<<St as TryStream>::Ok>: UnwindSafe,

Blanket Implementations

impl<R> AsyncBufReadExt for IntoAsyncRead<St> where R: AsyncBufRead + ?Sized,

impl<R> AsyncReadExt for IntoAsyncRead<St> where R: AsyncRead + ?Sized,

impl<T> Any for IntoAsyncRead<St> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for IntoAsyncRead<St> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for IntoAsyncRead<St> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for IntoAsyncRead<St>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for IntoAsyncRead<St> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for IntoAsyncRead<St> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for IntoAsyncRead<St> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

impl<W> AsyncWriteExt for IntoAsyncRead<St> where W: AsyncWrite + ?Sized,