[−][src]Struct trust_dns_resolver::Background
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]
E: Into<ResolveError>,
F: Future<Output = Result<TF, ResolveError>>,
G: Future<Output = Result<TG, ResolveError>>,
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]
F: Future,
G: Future,
fn from(
f: AndThen<MapErr<Receiver<F>, fn(_: Canceled) -> ResolveError>, G, fn(_: F) -> G>
) -> Self
[src]
f: AndThen<MapErr<Receiver<F>, fn(_: Canceled) -> ResolveError>, G, fn(_: F) -> G>
) -> Self
impl<F: Debug, G: Debug> Debug for Background<F, G> where
F: Future,
G: Future,
G::Output: Debug,
[src]
F: Future,
G: Future,
G::Output: Debug,
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]
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>,
Auto Trait Implementations
impl<F, G> Send for Background<F, G> where
F: Send,
G: Send,
<G as Future>::Output: Send,
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,
F: Send,
G: Sync,
<G as Future>::Output: Sync,
impl<F, G> Unpin for Background<F, G> where
G: Unpin,
G: Unpin,
impl<F, G = F> !UnwindSafe for Background<F, G>
impl<F, G = F> !RefUnwindSafe for Background<F, G>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,