pub struct First2<'a, A, B> { /* private fields */ }Expand description
First of two futures; the loser is dropped (unsubscribing its trigger).
The futures are boxed behind lifetime 'a rather than 'static (D82), so
a future that borrows — a component’s run borrowing the tree, a
sub-sequence borrowing its parent sequence — can be composed here. 'static
futures satisfy any 'a, so every earlier caller is unaffected.
Trait Implementations§
Auto Trait Implementations§
impl<'a, A, B> !RefUnwindSafe for First2<'a, A, B>
impl<'a, A, B> !Send for First2<'a, A, B>
impl<'a, A, B> !Sync for First2<'a, A, B>
impl<'a, A, B> !UnwindSafe for First2<'a, A, B>
impl<'a, A, B> Freeze for First2<'a, A, B>
impl<'a, A, B> Unpin for First2<'a, A, B>
impl<'a, A, B> UnsafeUnpin for First2<'a, A, B>
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<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