pub trait WithLocalExt {
    fn with_local<T: TaskLocal>(self, value: T) -> TaskLocalFuture<Self, T>Notable traits for TaskLocalFuture<Fut, T>impl<Fut, T> Future for TaskLocalFuture<Fut, T> where
    Fut: Future,
    T: TaskLocal
type Output = Fut::Output;

    where
        Self: Sized
, { ... } }
Expand description

An extension type for Futures to annotate them with a TaskLocal type.

Provided Methods

This will construct a Future type that stores this value and will make it available to the TaskLocal methods when executing.

Implementors