pub struct FromFutures<T: ?Sized> { /* private fields */ }
Available on crate features std and async only.
Expand description

Adapter from futures::io traits.

Implementations

Create a new adapter.

Consume the adapter, returning the inner object.

Borrow the inner object.

Mutably borrow the inner object.

Trait Implementations

Error type of all the IO operations on this type.

Future returned by read.

Pull some bytes from this source into the specified buffer, returning how many bytes were read.

Read the exact number of bytes required to fill buf.

Future returned by write.

Future returned by flush.

Write a buffer into this writer, returning how many bytes were written.

Flush this output stream, ensuring that all intermediately buffered contents reach their destination.

Write an entire buffer into this writer.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.