pub struct Race<L, R> { /* private fields */ }Expand description
Resolves with the first completed child, preferring left when both run.
A budget-skipped child resumes first on the next poll.
Completion ends the owner’s polling authority for this race.
Implementations§
Trait Implementations§
impl<'pin, L, R> Unpin for Race<L, R>where
PinnedFieldsOf<__Race<'pin, L, R>>: Unpin,
Auto Trait Implementations§
impl<L, R> Forget for Race<L, R>
impl<L, R> Freeze for Race<L, R>
impl<L, R> Move for Race<L, R>
impl<L, R> RefUnwindSafe for Race<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for Race<L, R>
impl<L, R> Sync for Race<L, R>
impl<L, R> UnsafeUnpin for Race<L, R>where
L: UnsafeUnpin,
R: UnsafeUnpin,
impl<L, R> UnwindSafe for Race<L, R>where
L: UnwindSafe,
R: UnwindSafe,
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