pub struct FromFutures<T: ?Sized> { /* private fields */ }
Available on crate feature futures 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.
Available on crate feature async only.
Future returned by read.
Available on crate feature async only.
Pull some bytes from this source into the specified buffer, returning how many bytes were read.
Available on crate feature async only.
Read the exact number of bytes required to fill buf.
Available on crate feature async only.
Future returned by seek.
Available on crate feature async only.
Seek to an offset, in bytes, in a stream.
Available on crate feature async only.
Rewind to the beginning of a stream.
Available on crate feature async only.
Returns the current seek position from the start of the stream.
Available on crate feature async only.
Future returned by write.
Available on crate feature async only.
Future returned by flush.
Available on crate feature async only.
Write a buffer into this writer, returning how many bytes were written.
Available on crate feature async only.
Flush this output stream, ensuring that all intermediately buffered contents reach their destination.
Available on crate feature async only.
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.