[−][src]Struct futures_util::future::Select
Future for the select()
function.
Trait Implementations
impl<A: Unpin, B: Unpin> Unpin for Select<A, B>
[src]
impl<A: Debug, B: Debug> Debug for Select<A, B>
[src]
impl<A, B> Future for Select<A, B> where
A: Future + Unpin,
B: Future + Unpin,
[src]
A: Future + Unpin,
B: Future + Unpin,
type Output = Either<(A::Output, B), (B::Output, A)>
The type of value produced on completion.
fn poll(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Self::Output>
[src]
impl<A, B> FusedFuture for Select<A, B> where
A: Future + Unpin,
B: Future + Unpin,
[src]
A: Future + Unpin,
B: Future + Unpin,
fn is_terminated(&self) -> bool
[src]
Auto Trait Implementations
impl<A, B> Send for Select<A, B> where
A: Send,
B: Send,
A: Send,
B: Send,
impl<A, B> Sync for Select<A, B> where
A: Sync,
B: Sync,
A: Sync,
B: Sync,
impl<A, B> UnwindSafe for Select<A, B> where
A: UnwindSafe,
B: UnwindSafe,
A: UnwindSafe,
B: UnwindSafe,
impl<A, B> RefUnwindSafe for Select<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
A: RefUnwindSafe,
B: RefUnwindSafe,
Blanket Implementations
impl<T> FutureExt for T where
T: Future + ?Sized,
[src]
T: Future + ?Sized,
ⓘImportant traits for Map<Fut, F>fn map<U, F>(self, f: F) -> Map<Self, F> where
F: FnOnce(Self::Output) -> U,
Self: Sized,
[src]
ⓘImportant traits for Map<Fut, F>
F: FnOnce(Self::Output) -> U,
Self: Sized,
ⓘImportant traits for Then<Fut1, Fut2, F>fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F> where
F: FnOnce(Self::Output) -> Fut,
Fut: Future,
Self: Sized,
[src]
ⓘImportant traits for Then<Fut1, Fut2, F>
F: FnOnce(Self::Output) -> Fut,
Fut: Future,
Self: Sized,
ⓘImportant traits for Either<A, B>fn left_future<B>(self) -> Either<Self, B> where
B: Future<Output = Self::Output>,
Self: Sized,
[src]
ⓘImportant traits for Either<A, B>
B: Future<Output = Self::Output>,
Self: Sized,
ⓘImportant traits for Either<A, B>fn right_future<A>(self) -> Either<A, Self> where
A: Future<Output = Self::Output>,
Self: Sized,
[src]
ⓘImportant traits for Either<A, B>
A: Future<Output = Self::Output>,
Self: Sized,
fn into_stream(self) -> IntoStream<Self> where
Self: Sized,
[src]
Self: Sized,
ⓘImportant traits for Flatten<Fut>fn flatten(self) -> Flatten<Self> where
Self::Output: Future,
Self: Sized,
[src]
ⓘImportant traits for Flatten<Fut>
Self::Output: Future,
Self: Sized,
fn flatten_stream(self) -> FlattenStream<Self> where
Self::Output: Stream,
Self: Sized,
[src]
Self::Output: Stream,
Self: Sized,
ⓘImportant traits for Fuse<Fut>fn fuse(self) -> Fuse<Self> where
Self: Sized,
[src]
ⓘImportant traits for Fuse<Fut>
Self: Sized,
ⓘImportant traits for Inspect<Fut, F>fn inspect<F>(self, f: F) -> Inspect<Self, F> where
F: FnOnce(&Self::Output),
Self: Sized,
[src]
ⓘImportant traits for Inspect<Fut, F>
F: FnOnce(&Self::Output),
Self: Sized,
ⓘImportant traits for CatchUnwind<Fut>fn catch_unwind(self) -> CatchUnwind<Self> where
Self: Sized + UnwindSafe,
[src]
ⓘImportant traits for CatchUnwind<Fut>
Self: Sized + UnwindSafe,
ⓘImportant traits for Shared<Fut>fn shared(self) -> Shared<Self> where
Self: Sized,
Self::Output: Clone,
[src]
ⓘImportant traits for Shared<Fut>
Self: Sized,
Self::Output: Clone,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>) where
Self: Sized,
[src]
Self: Sized,
fn boxed<'a>(self) -> BoxFuture<'a, Self::Output> where
Self: Sized + Send + 'a,
[src]
Self: Sized + Send + 'a,
fn boxed_local<'a>(self) -> LocalBoxFuture<'a, Self::Output> where
Self: Sized + 'a,
[src]
Self: Sized + 'a,
ⓘImportant traits for UnitError<Fut>fn unit_error(self) -> UnitError<Self> where
Self: Sized,
[src]
ⓘImportant traits for UnitError<Fut>
Self: Sized,
ⓘImportant traits for NeverError<Fut>fn never_error(self) -> NeverError<Self> where
Self: Sized,
[src]
ⓘImportant traits for NeverError<Fut>
Self: Sized,
fn poll_unpin(&mut self, cx: &mut Context) -> Poll<Self::Output> where
Self: Unpin,
[src]
Self: Unpin,
fn now_or_never(self) -> Option<Self::Output> where
Self: Sized,
[src]
Self: Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Ffn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut F
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,