pub struct FromFutures<T: ?Sized> { /* private fields */ }Available on crate feature
futures-03 only.Expand description
Adapter from futures::io traits.
Implementations§
Source§impl<T> FromFutures<T>
impl<T> FromFutures<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consume the adapter, returning the inner object.
Trait Implementations§
Source§impl<T: AsyncBufRead + Unpin + ?Sized> BufRead for FromFutures<T>
impl<T: AsyncBufRead + Unpin + ?Sized> BufRead for FromFutures<T>
Source§impl<T: Clone + ?Sized> Clone for FromFutures<T>
impl<T: Clone + ?Sized> Clone for FromFutures<T>
Source§fn clone(&self) -> FromFutures<T>
fn clone(&self) -> FromFutures<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: ?Sized> ErrorType for FromFutures<T>
impl<T: ?Sized> ErrorType for FromFutures<T>
Source§impl<T: AsyncRead + Unpin + ?Sized> Read for FromFutures<T>
impl<T: AsyncRead + Unpin + ?Sized> Read for FromFutures<T>
Source§async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§async fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
async fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf. Read moreSource§impl<T: AsyncSeek + Unpin + ?Sized> Seek for FromFutures<T>
impl<T: AsyncSeek + Unpin + ?Sized> Seek for FromFutures<T>
Source§impl<T: AsyncWrite + Unpin + ?Sized> Write for FromFutures<T>
impl<T: AsyncWrite + Unpin + ?Sized> Write for FromFutures<T>
Source§async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Auto Trait Implementations§
impl<T> Freeze for FromFutures<T>
impl<T> RefUnwindSafe for FromFutures<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for FromFutures<T>
impl<T> Sync for FromFutures<T>
impl<T> Unpin for FromFutures<T>
impl<T> UnwindSafe for FromFutures<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