Struct veilid_tools::MustJoinSingleFuture
source · 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 copy 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> 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