Struct futures_lite::future::TryZip
source · [−]Expand description
Future for the try_zip()
function.
Trait Implementations
sourceimpl<F1: Debug, F2: Debug> Debug for TryZip<F1, F2> where
F1: Future,
F2: Future,
F1::Output: Debug,
F2::Output: Debug,
impl<F1: Debug, F2: Debug> Debug for TryZip<F1, F2> where
F1: Future,
F2: Future,
F1::Output: Debug,
F2::Output: Debug,
sourceimpl<T1, T2, E, F1, F2> Future for TryZip<F1, F2> where
F1: Future<Output = Result<T1, E>>,
F2: Future<Output = Result<T2, E>>,
impl<T1, T2, E, F1, F2> Future for TryZip<F1, F2> where
F1: Future<Output = Result<T1, E>>,
F2: Future<Output = Result<T2, E>>,
impl<'__pin, F1, F2> Unpin for TryZip<F1, F2> where
__Origin<'__pin, F1, F2>: Unpin,
F1: Future,
F2: Future,
Auto Trait Implementations
impl<F1, F2> RefUnwindSafe for TryZip<F1, F2> where
F1: RefUnwindSafe,
F2: RefUnwindSafe,
<F1 as Future>::Output: RefUnwindSafe,
<F2 as Future>::Output: RefUnwindSafe,
impl<F1, F2> Send for TryZip<F1, F2> where
F1: Send,
F2: Send,
<F1 as Future>::Output: Send,
<F2 as Future>::Output: Send,
impl<F1, F2> Sync for TryZip<F1, F2> where
F1: Sync,
F2: Sync,
<F1 as Future>::Output: Sync,
<F2 as Future>::Output: Sync,
impl<F1, F2> UnwindSafe for TryZip<F1, F2> where
F1: UnwindSafe,
F2: UnwindSafe,
<F1 as Future>::Output: UnwindSafe,
<F2 as Future>::Output: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F> FutureExt for F where
F: Future + ?Sized,
impl<F> FutureExt for F where
F: Future + ?Sized,
sourcefn poll(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output> where
Self: Unpin,
fn poll(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output> where
Self: Unpin,
A convenience for calling Future::poll()
on !
Unpin
types.
sourcefn or<F>(self, other: F) -> Or<Self, F>ⓘNotable traits for Or<F1, F2>impl<T, F1, F2> Future for Or<F1, F2> where
F1: Future<Output = T>,
F2: Future<Output = T>, type Output = T;
where
Self: Sized,
F: Future<Output = Self::Output>,
fn or<F>(self, other: F) -> Or<Self, F>ⓘNotable traits for Or<F1, F2>impl<T, F1, F2> Future for Or<F1, F2> where
F1: Future<Output = T>,
F2: Future<Output = T>, type Output = T;
where
Self: Sized,
F: Future<Output = Self::Output>,
F1: Future<Output = T>,
F2: Future<Output = T>, type Output = T;
Returns the result of self
or other
future, preferring self
if both are ready. Read more
sourcefn race<F>(self, other: F) -> Race<Self, F>ⓘNotable traits for Race<F1, F2>impl<T, F1, F2> Future for Race<F1, F2> where
F1: Future<Output = T>,
F2: Future<Output = T>, type Output = T;
where
Self: Sized,
F: Future<Output = Self::Output>,
fn race<F>(self, other: F) -> Race<Self, F>ⓘNotable traits for Race<F1, F2>impl<T, F1, F2> Future for Race<F1, F2> where
F1: Future<Output = T>,
F2: Future<Output = T>, type Output = T;
where
Self: Sized,
F: Future<Output = Self::Output>,
F1: Future<Output = T>,
F2: Future<Output = T>, type Output = T;
Returns the result of self
or other
future, with no preference if both are ready. Read more
sourcefn catch_unwind(self) -> CatchUnwind<Self>ⓘNotable traits for CatchUnwind<F>impl<F: Future + UnwindSafe> Future for CatchUnwind<F> type Output = Result<F::Output, Box<dyn Any + Send>>;
where
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>ⓘNotable traits for CatchUnwind<F>impl<F: Future + UnwindSafe> Future for CatchUnwind<F> type Output = Result<F::Output, Box<dyn Any + Send>>;
where
Self: Sized + UnwindSafe,
Catches panics while polling the future. Read more
sourceimpl<F> IntoFuture for F where
F: Future,
impl<F> IntoFuture for F where
F: Future,
type Output = <F as Future>::Output
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
sourcepub fn into_future(self) -> <F as IntoFuture>::Future
pub fn into_future(self) -> <F as IntoFuture>::Future
🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.