pub struct MultiCompleteFuture<CS> { /* private fields */ }Expand description
A version of CompleteFuture that can be cloned to have multiple futures pointing to the same “complete-ness”.
Implementations§
Source§impl<CS> MultiCompleteFuture<CS>
impl<CS> MultiCompleteFuture<CS>
Sourcepub fn get_handle(&self) -> MultiCompleteFutureHandle<CS>
pub fn get_handle(&self) -> MultiCompleteFutureHandle<CS>
Gets a handle to this future that does not prevent dropping the inner.
Sourcepub fn complete(&self) -> boolwhere
CS: ThreadFunctions,
pub fn complete(&self) -> boolwhere
CS: ThreadFunctions,
Returns true if future was already finished.
Trait Implementations§
Source§impl<CS> Clone for MultiCompleteFuture<CS>
impl<CS> Clone for MultiCompleteFuture<CS>
Source§impl<CS: Debug> Debug for MultiCompleteFuture<CS>
impl<CS: Debug> Debug for MultiCompleteFuture<CS>
Source§impl<CS> Default for MultiCompleteFuture<CS>
impl<CS> Default for MultiCompleteFuture<CS>
Source§impl<CS> Future for MultiCompleteFuture<CS>where
CS: ThreadFunctions,
impl<CS> Future for MultiCompleteFuture<CS>where
CS: ThreadFunctions,
Auto Trait Implementations§
impl<CS> Freeze for MultiCompleteFuture<CS>
impl<CS> !RefUnwindSafe for MultiCompleteFuture<CS>
impl<CS> Send for MultiCompleteFuture<CS>
impl<CS> Sync for MultiCompleteFuture<CS>
impl<CS> Unpin for MultiCompleteFuture<CS>
impl<CS> !UnwindSafe for MultiCompleteFuture<CS>
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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more