Struct futures_util::compat::Compat01As03 [−][src]
pub struct Compat01As03<T> { /* fields omitted */ }
Expand description
Converts a futures 0.1 Future, Stream, AsyncRead, or AsyncWrite object to a futures 0.3-compatible version,
Implementations
Wraps a futures 0.1 Future, Stream, AsyncRead, or AsyncWrite object in a futures 0.3-compatible wrapper.
Get a reference to 0.1 Future, Stream, AsyncRead, or AsyncWrite object contained within.
Get a mutable reference to 0.1 Future, Stream, AsyncRead or AsyncWrite object contained within.
Consume this wrapper to return the underlying 0.1 Future, Stream, AsyncRead, or AsyncWrite object.
Trait Implementations
Attempt to pull out the next value of this stream, registering the
current task for wakeup if the value is not yet available, and returning
None
if the stream is exhausted. Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for Compat01As03<T>
impl<T> Send for Compat01As03<T> where
T: Send,
impl<T> !Sync for Compat01As03<T>
impl<T> !UnwindSafe for Compat01As03<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
into_future
)Which kind of future are we turning this into?
into_future
)Creates a future from a value.