Struct single_executor::MultiCompleteFuture [−][src]
pub struct MultiCompleteFuture<CS> { /* fields omitted */ }
Expand description
A version of CompleteFuture
that can be cloned to have multiple futures pointing to the same “complete-ness”.
Implementations
impl<CS> MultiCompleteFuture<CS>
[src]
impl<CS> MultiCompleteFuture<CS>
[src]pub fn get_handle(&self) -> MultiCompleteFutureHandle<CS>
[src]
pub fn get_handle(&self) -> MultiCompleteFutureHandle<CS>
[src]Gets a handle to this future that does not prevent dropping the inner.
pub fn complete(&self) -> bool where
CS: ThreadFunctions,
[src]
pub fn complete(&self) -> bool where
CS: ThreadFunctions,
[src]Returns true if future was already finished.
Trait Implementations
impl<CS: Clone> Clone for MultiCompleteFuture<CS>
[src]
impl<CS: Clone> Clone for MultiCompleteFuture<CS>
[src]fn clone(&self) -> MultiCompleteFuture<CS>ⓘNotable traits for MultiCompleteFuture<CS>
impl<CS> Future for MultiCompleteFuture<CS> where
CS: ThreadFunctions, type Output = ();
[src]
fn clone(&self) -> MultiCompleteFuture<CS>ⓘNotable traits for MultiCompleteFuture<CS>
impl<CS> Future for MultiCompleteFuture<CS> where
CS: ThreadFunctions, type Output = ();
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<CS: Debug> Debug for MultiCompleteFuture<CS>
[src]
impl<CS: Debug> Debug for MultiCompleteFuture<CS>
[src]impl<CS> Default for MultiCompleteFuture<CS>
[src]
impl<CS> Default for MultiCompleteFuture<CS>
[src]impl<CS> Future for MultiCompleteFuture<CS> where
CS: ThreadFunctions,
[src]
impl<CS> Future for MultiCompleteFuture<CS> where
CS: ThreadFunctions,
[src]Auto Trait Implementations
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<F> IntoFuture for F where
F: Future,
[src]
impl<F> IntoFuture for F where
F: Future,
[src]type Output = <F as Future>::Output
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more