[][src]Struct plumbing::Resolver

#[must_use = "Resolvers do nothing unless polled"]pub struct Resolver<St: Stream + Unpin> { /* fields omitted */ }

A Future associated with a request submitted through a Pipeline.

When you successfully submit a request to a Pipeline, it returns a Resolver that can be awaited to retrieve the response for that request. Because responses are retrieved lazily and in order, each Resolver must be awaited in order to receive the responses; later Resolvers will block indefinitely until earlier Resolvers have returned their responses.

If the Stream used by the Pipeline to retrieve responses closes prematurely, all remaining (and new) Resolvers will return None. Ideally this shouldn't happen; the stream should return Some(Err(...)) to each resolver in the event of (for example) an unrecoverable connection failure.

If a Resolver is dropped, the response associated with it will simply be discarded.

Trait Implementations

impl<St: Debug + Stream + Unpin> Debug for Resolver<St>[src]

impl<St: Stream + Unpin> Drop for Resolver<St>[src]

impl<St: Stream + Unpin> FusedFuture for Resolver<St>[src]

impl<St: Stream + Unpin> Future for Resolver<St>[src]

type Output = Option<St::Item>

The type of value produced on completion.

Auto Trait Implementations

impl<St> !RefUnwindSafe for Resolver<St>

impl<St> Send for Resolver<St> where
    St: Send

impl<St> Sync for Resolver<St> where
    St: Send + Sync

impl<St> Unpin for Resolver<St>

impl<St> !UnwindSafe for Resolver<St>

Blanket Implementations

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

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.