[−][src]Struct futures_race::Race
👎 Deprecated since 1.2.0:
please use futures-micro
or futures-lite
instead
Deprecated in favor of futures-micro
and
futures-lite
.
Trait Implementations
impl<Left: Debug, Right: Debug> Debug for Race<Left, Right> where
Left: Future,
Right: Future<Output = Left::Output>,
[src]
Left: Future,
Right: Future<Output = Left::Output>,
impl<Left, Right> Future for Race<Left, Right> where
Left: Future,
Right: Future<Output = Left::Output>,
[src]
Left: Future,
Right: Future<Output = Left::Output>,
type Output = Left::Output
The type of value produced on completion.
fn poll(self: Pin<&mut Self>, ctx: &mut Context<'_>) -> Poll<Self::Output>
[src]
impl<'__pin, Left, Right> Unpin for Race<Left, Right> where
__Origin<'__pin, Left, Right>: Unpin,
Left: Future,
Right: Future<Output = Left::Output>,
[src]
__Origin<'__pin, Left, Right>: Unpin,
Left: Future,
Right: Future<Output = Left::Output>,
Auto Trait Implementations
impl<Left, Right> Send for Race<Left, Right> where
Left: Send,
Right: Send,
Left: Send,
Right: Send,
impl<Left, Right> Sync for Race<Left, Right> where
Left: Sync,
Right: Sync,
Left: Sync,
Right: Sync,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Fut> RaceExt for Fut where
Fut: Future,
[src]
Fut: Future,
fn race<With>(self, with: With) -> Race<Self, With>ⓘ where
Self: Sized,
With: Future<Output = Self::Output>,
[src]
Self: Sized,
With: Future<Output = Self::Output>,
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>,