Struct completion::future::RaceAll [−][src]
This is supported on crate feature
std
only.Future for race_all
.
Trait Implementations
impl<F: CompletionFuture> CompletionFuture for RaceAll<F>
[src]
type Output = F::Output
The type of value produced on completion.
unsafe fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
[src]
unsafe fn poll_cancel(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<()>
[src]
impl<F: Debug + CompletionFuture> Debug for RaceAll<F> where
F::Output: Debug,
[src]
F::Output: Debug,
impl<F: CompletionFuture> FromCompletionStream<F> for RaceAll<F>
[src]
impl<F: CompletionFuture> FromIterator<F> for RaceAll<F>
[src]
fn from_iter<T: IntoIterator<Item = F>>(iter: T) -> Self
[src]
impl<F: CompletionFuture> Unpin for RaceAll<F>
[src]
Auto Trait Implementations
impl<F> !RefUnwindSafe for RaceAll<F>
impl<F> Send for RaceAll<F> where
F: Send,
<F as CompletionFuture>::Output: Send,
F: Send,
<F as CompletionFuture>::Output: Send,
impl<F> Sync for RaceAll<F> where
F: Sync,
<F as CompletionFuture>::Output: Sync,
F: Sync,
<F as CompletionFuture>::Output: Sync,
impl<F> !UnwindSafe for RaceAll<F>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CompletionFutureExt for T where
T: CompletionFuture + ?Sized,
[src]
T: CompletionFuture + ?Sized,
unsafe fn poll(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output> where
Self: Unpin,
[src]
Self: Unpin,
unsafe fn poll_cancel(&mut self, cx: &mut Context<'_>) -> Poll<()> where
Self: Unpin,
[src]
Self: Unpin,
fn must_complete(self) -> MustComplete<Self> where
Self: Sized,
[src]
Self: Sized,
fn now_or_never(self) -> NowOrNever<Self>ⓘNotable traits for NowOrNever<F>
impl<F> Future for NowOrNever<F> where
F: CompletionFuture + Future<Output = <F as CompletionFuture>::Output>, type Output = Option<<F as CompletionFuture>::Output>;
where
Self: Sized,
[src]
Notable traits for NowOrNever<F>
impl<F> Future for NowOrNever<F> where
F: CompletionFuture + Future<Output = <F as CompletionFuture>::Output>, type Output = Option<<F as CompletionFuture>::Output>;
Self: Sized,
fn catch_unwind(self) -> CatchUnwind<Self>ⓘNotable traits for CatchUnwind<F>
impl<F: Future + UnwindSafe + ?Sized> Future for CatchUnwind<F> type Output = Result<F::Output, Box<dyn Any + Send>>;
where
Self: Sized + UnwindSafe,
[src]
Notable traits for CatchUnwind<F>
impl<F: Future + UnwindSafe + ?Sized> Future for CatchUnwind<F> type Output = Result<F::Output, Box<dyn Any + Send>>;
Self: Sized + UnwindSafe,
fn boxed<'a>(self) -> BoxCompletionFuture<'a, Self::Output> where
Self: Sized + Send + 'a,
[src]
Self: Sized + Send + 'a,
fn boxed_local<'a>(self) -> LocalBoxCompletionFuture<'a, Self::Output> where
Self: Sized + 'a,
[src]
Self: Sized + 'a,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,