pub struct WithTokioIo<I> { /* private fields */ }Available on crate feature
tokio only.Expand description
Implementations§
Source§impl<I> WithTokioIo<I>
impl<I> WithTokioIo<I>
Sourcepub fn new(inner: I) -> Self
pub fn new(inner: I) -> Self
Wraps the inner I/O in an WithTokioIo<I>
Sourcepub fn into_inner(self) -> I
pub fn into_inner(self) -> I
Consumes this wrapper and returns the inner type.
Trait Implementations§
Source§impl<I> AsyncRead for WithTokioIo<I>where
I: Read,
WithTokioIo<I> is AsyncRead if I is Read.
impl<I> AsyncRead for WithTokioIo<I>where
I: Read,
WithTokioIo<I> is AsyncRead if I is Read.
Source§impl<I> AsyncWrite for WithTokioIo<I>where
I: Write,
WithTokioIo<I> is AsyncWrite if I is Write.
impl<I> AsyncWrite for WithTokioIo<I>where
I: Write,
WithTokioIo<I> is AsyncWrite if I is Write.
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize, Error>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize, Error>>
Attempt to write bytes from
buf into the object. Read moreSource§fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Attempts to flush the object, ensuring that any buffered data reach
their destination. Read more
Source§fn poll_shutdown(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_shutdown( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Initiates or attempts to shut down this writer, returning success when
the I/O connection has completely shut down. Read more
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
Determines if this writer has an efficient
poll_write_vectored
implementation. Read moreSource§impl<I: Debug> Debug for WithTokioIo<I>
impl<I: Debug> Debug for WithTokioIo<I>
Source§impl<I> Read for WithTokioIo<I>where
I: Read,
WithTokioIo<I> exposes its inner I’s Read implementation.
impl<I> Read for WithTokioIo<I>where
I: Read,
WithTokioIo<I> exposes its inner I’s Read implementation.
Source§impl<I> Write for WithTokioIo<I>where
I: Write,
WithTokioIo<I> exposes its inner I’s Write implementation.
impl<I> Write for WithTokioIo<I>where
I: Write,
WithTokioIo<I> exposes its inner I’s Write implementation.
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize, Error>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize, Error>>
Attempt to write bytes from
buf into the destination. Read moreSource§fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Attempts to flush the object. Read more
Source§fn poll_shutdown(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Error>>
fn poll_shutdown( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Error>>
Attempts to shut down this writer.
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
Returns whether this writer has an efficient
poll_write_vectored
implementation. Read moreimpl<'__pin, I> Unpin for WithTokioIo<I>where
PinnedFieldsOf<__Origin<'__pin, I>>: Unpin,
Auto Trait Implementations§
impl<I> Freeze for WithTokioIo<I>where
I: Freeze,
impl<I> RefUnwindSafe for WithTokioIo<I>where
I: RefUnwindSafe,
impl<I> Send for WithTokioIo<I>where
I: Send,
impl<I> Sync for WithTokioIo<I>where
I: Sync,
impl<I> UnwindSafe for WithTokioIo<I>where
I: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.