[][src]Struct futures_test::stream::InterleavePending

pub struct InterleavePending<T> { /* fields omitted */ }

Wrapper that interleaves Poll::Pending in calls to poll.

See the interleave_pending methods on:

Methods

impl<T> InterleavePending<T>[src]

pub fn get_ref(&self) -> &T[src]

Acquires a reference to the underlying I/O object that this adaptor is wrapping.

pub fn get_mut(&mut self) -> &mut T[src]

Acquires a mutable reference to the underlying I/O object that this adaptor is wrapping.

pub fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>[src]

Acquires a pinned mutable reference to the underlying I/O object that this adaptor is wrapping.

pub fn into_inner(self) -> T[src]

Consumes this adaptor returning the underlying I/O object.

Trait Implementations

impl<T: Unpin> Unpin for InterleavePending<T>[src]

impl<T: Debug> Debug for InterleavePending<T>[src]

impl<Fut: Future> Future for InterleavePending<Fut>[src]

type Output = Fut::Output

The type of value produced on completion.

impl<Fut: FusedFuture> FusedFuture for InterleavePending<Fut>[src]

impl<St: Stream> Stream for InterleavePending<St>[src]

type Item = St::Item

Values yielded by the stream.

impl<Fut: FusedStream> FusedStream for InterleavePending<Fut>[src]

impl<R: AsyncBufRead> AsyncBufRead for InterleavePending<R>[src]

impl<R: AsyncRead> AsyncRead for InterleavePending<R>[src]

impl<W: AsyncWrite> AsyncWrite for InterleavePending<W>[src]

Auto Trait Implementations

impl<T> Send for InterleavePending<T> where
    T: Send

impl<T> Sync for InterleavePending<T> where
    T: Sync

impl<T> UnwindSafe for InterleavePending<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for InterleavePending<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<Fut> FutureTestExt for Fut where
    Fut: Future
[src]

impl<St> StreamTestExt for St where
    St: Stream
[src]

impl<R> AsyncReadTestExt for R where
    R: AsyncRead
[src]

impl<W> AsyncWriteTestExt for W where
    W: AsyncWrite
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<F, T, E> TryFuture for F where
    F: Future<Output = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<T> FutureExt for T where
    T: Future + ?Sized
[src]

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<Fut> TryFutureExt for Fut where
    Fut: TryFuture + ?Sized
[src]

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized
[src]

impl<R> AsyncBufReadExt for R where
    R: AsyncBufRead + ?Sized
[src]