Trait task_local::WithLocalExt
source · [−]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,
{ ... }
}
Provided Methods
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,
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,
Fut: Future,
T: TaskLocal, type Output = Fut::Output;