[][src]Struct trust_dns_resolver::Background

pub struct Background<F, G = F> where
    F: Future,
    G: Future
{ /* fields omitted */ }

A future that represents sending a request to a background task, waiting for it to send back a lookup future, and then running the lookup future.

Trait Implementations

impl<TF, TG, E, F, G> From<E> for Background<F, G> where
    E: Into<ResolveError>,
    F: Future<Output = Result<TF, ResolveError>>,
    G: Future<Output = Result<TG, ResolveError>>, 
[src]

impl<F, G> From<AndThen<MapErr<Receiver<F>, fn(Canceled) -> ResolveError>, G, fn(F) -> G>> for Background<F, G> where
    F: Future,
    G: Future
[src]

impl<F: Debug, G: Debug> Debug for Background<F, G> where
    F: Future,
    G: Future,
    G::Output: Debug
[src]

impl<F, G> Future for Background<F, G> where
    F: Future + Unpin,
    G: Future + Unpin,
    Either<AndThen<MapErr<Receiver<F>, fn(_: Canceled) -> ResolveError>, G, fn(_: F) -> G>, Ready<G::Output>>: Future<Output = G::Output>, 
[src]

type Output = G::Output

The type of value produced on completion.

Auto Trait Implementations

impl<F, G> Send for Background<F, G> where
    F: Send,
    G: Send,
    <G as Future>::Output: Send

impl<F, G> Sync for Background<F, G> where
    F: Send,
    G: Sync,
    <G as Future>::Output: Sync

impl<F, G> Unpin for Background<F, G> where
    G: Unpin

impl<F, G = F> !UnwindSafe for Background<F, G>

impl<F, G = F> !RefUnwindSafe for Background<F, G>

Blanket Implementations

impl<T> From<T> for T[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 = !

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,