pub struct MustJoinSingleFuture<T>where
T: 'static,{ /* private fields */ }Expand description
Spawns a single background processing task idempotently, possibly returning the return value of the previously executed background task This does not queue, just ensures that no more than a single copy of the task is running at a time, but allowing tasks to be retriggered
Implementations§
Source§impl<T> MustJoinSingleFuture<T>where
T: 'static,
impl<T> MustJoinSingleFuture<T>where
T: 'static,
Trait Implementations§
Source§impl<T> Clone for MustJoinSingleFuture<T>where
T: 'static + Clone,
impl<T> Clone for MustJoinSingleFuture<T>where
T: 'static + Clone,
Source§fn clone(&self) -> MustJoinSingleFuture<T>
fn clone(&self) -> MustJoinSingleFuture<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for MustJoinSingleFuture<T>where
T: 'static + Debug,
impl<T> Debug for MustJoinSingleFuture<T>where
T: 'static + Debug,
Auto Trait Implementations§
impl<T> Freeze for MustJoinSingleFuture<T>
impl<T> !RefUnwindSafe for MustJoinSingleFuture<T>
impl<T> Send for MustJoinSingleFuture<T>where
T: Send,
impl<T> Sync for MustJoinSingleFuture<T>where
T: Send,
impl<T> Unpin for MustJoinSingleFuture<T>
impl<T> !UnwindSafe for MustJoinSingleFuture<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more