pub struct FuturesIo<T: ?Sized> { /* private fields */ }Expand description
This type implements hyper I/O traits for [futures-io] implementors.
Implementations§
Source§impl<T> FuturesIo<T>
impl<T> FuturesIo<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Get the inner type.
Trait Implementations§
Source§impl<T: AsyncWrite + ?Sized> Write for FuturesIo<T>
impl<T: AsyncWrite + ?Sized> Write for FuturesIo<T>
Source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize>>
Attempt to write bytes from
buf into the destination. Read moreSource§fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Attempts to flush the object. Read more
Source§fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Attempts to shut down this writer.
Source§fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>],
) -> Poll<Result<usize>>
fn poll_write_vectored( self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>], ) -> Poll<Result<usize>>
Like
poll_write, except that it writes from a slice of buffers.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<T: Copy + ?Sized> Copy for FuturesIo<T>
impl<'__pin, T: ?Sized> Unpin for FuturesIo<T>where
PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,
Auto Trait Implementations§
impl<T> Freeze for FuturesIo<T>
impl<T> RefUnwindSafe for FuturesIo<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for FuturesIo<T>
impl<T> Sync for FuturesIo<T>
impl<T> UnwindSafe for FuturesIo<T>where
T: UnwindSafe + ?Sized,
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