Struct WithHyperIo
struct WithHyperIo<I> { ... }
Extends an underlying tokio I/O with hyper I/O implementations.
This implements Read and Write given an inner type that implements AsyncRead
and AsyncWrite, respectively.
Implementations
impl<I> WithHyperIo<I>
fn new(inner: I) -> SelfWraps the inner I/O in an [
WithHyperIo<I>]fn inner(self: &Self) -> &IReturns a reference to the inner type.
fn inner_mut(self: &mut Self) -> &mut IReturns a mutable reference to the inner type.
fn into_inner(self: Self) -> IConsumes this wrapper and returns the inner type.
impl<'__pin, I> Unpin for WithHyperIo<I>
impl<I> AsyncRead for WithHyperIo<I>
fn poll_read(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut ReadBuf<'_>) -> Poll<Result<(), Error>>
impl<I> AsyncWrite for WithHyperIo<I>
fn poll_write(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8]) -> Poll<Result<usize, Error>>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<I> Freeze for WithHyperIo<I>
impl<I> Read for WithHyperIo<I>
fn poll_read(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: ReadBufCursor<'_>) -> Poll<Result<(), Error>>
impl<I> RefUnwindSafe for WithHyperIo<I>
impl<I> Send for WithHyperIo<I>
impl<I> Sync for WithHyperIo<I>
impl<I> UnsafeUnpin for WithHyperIo<I>
impl<I> UnwindSafe for WithHyperIo<I>
impl<I> Write for WithHyperIo<I>
fn poll_write(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8]) -> Poll<Result<usize, Error>>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<I: $crate::fmt::Debug> Debug for WithHyperIo<I>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<R> AsyncReadExt for WithHyperIo<I>
impl<T> Any for WithHyperIo<I>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for WithHyperIo<I>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for WithHyperIo<I>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for WithHyperIo<I>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for WithHyperIo<I>
impl<T> WithSubscriber for WithHyperIo<I>
impl<T, U> Into for WithHyperIo<I>
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 WithHyperIo<I>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for WithHyperIo<I>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>