Home
last modified time | relevance | path

Searched refs:TryFuture (Results 1 – 25 of 26) sorted by relevance

12

/external/rust/crates/futures-util/src/future/
Dtry_join.rs6 use futures_core::future::{Future, TryFuture};
18 pub struct $Join<Fut1: TryFuture, $($Fut: TryFuture),*> {
26 Fut1: TryFuture + fmt::Debug,
30 $Fut: TryFuture + fmt::Debug,
45 Fut1: TryFuture,
47 $Fut: TryFuture<Error=Fut1::Error>
60 Fut1: TryFuture,
62 $Fut: TryFuture<Error=Fut1::Error>
150 Fut1: TryFuture, in try_join() argument
151 Fut2: TryFuture<Error = Fut1::Error>, in try_join()
[all …]
Dtry_maybe_done.rs6 use futures_core::future::{FusedFuture, Future, TryFuture};
14 pub enum TryMaybeDone<Fut: TryFuture> {
25 impl<Fut: TryFuture + Unpin> Unpin for TryMaybeDone<Fut> {}
28 pub fn try_maybe_done<Fut: TryFuture>(future: Fut) -> TryMaybeDone<Fut> { in try_maybe_done()
32 impl<Fut: TryFuture> TryMaybeDone<Fut> {
64 impl<Fut: TryFuture> FusedFuture for TryMaybeDone<Fut> {
73 impl<Fut: TryFuture> Future for TryMaybeDone<Fut> {
Dtry_join_all.rs13 use super::{assert_future, TryFuture, TryMaybeDone};
34 F: TryFuture,
41 F: TryFuture + fmt::Debug,
93 I::Item: TryFuture, in try_join_all() argument
96 …assert_future::<Result<Vec<<I::Item as TryFuture>::Ok>, <I::Item as TryFuture>::Error>, _>(TryJoin… in try_join_all()
103 F: TryFuture,
138 impl<F: TryFuture> FromIterator<F> for TryJoinAll<F> {
Dselect_ok.rs7 use futures_core::future::{Future, TryFuture};
34 I::Item: TryFuture + Unpin, in select_ok()
40 …assert_future::<Result<(<I::Item as TryFuture>::Ok, Vec<I::Item>), <I::Item as TryFuture>::Error>,… in select_ok()
43 impl<Fut: TryFuture + Unpin> Future for SelectOk<Fut> {
80 impl<Fut: TryFuture + Unpin> FromIterator<Fut> for SelectOk<Fut> {
Dtry_select.rs2 use futures_core::future::{Future, TryFuture};
51 where A: TryFuture + Unpin, B: TryFuture + Unpin in try_select()
60 where A: TryFuture, B: TryFuture
Dmod.rs17 pub use futures_core::future::{FusedFuture, TryFuture};
/external/rust/crates/futures-util/src/future/try_future/
Dtry_flatten_err.rs2 use futures_core::future::{FusedFuture, Future, TryFuture};
24 where Fut: TryFuture,
25 Fut::Error: TryFuture<Ok=Fut::Ok>,
36 where Fut: TryFuture,
37 Fut::Error: TryFuture<Ok=Fut::Ok>,
39 type Output = Result<Fut::Ok, <Fut::Error as TryFuture>::Error>;
Dtry_flatten.rs2 use futures_core::future::{FusedFuture, Future, TryFuture};
27 where Fut: TryFuture,
28 Fut::Ok: TryFuture<Error=Fut::Error>,
39 where Fut: TryFuture,
40 Fut::Ok: TryFuture<Error=Fut::Error>,
42 type Output = Result<<Fut::Ok as TryFuture>::Ok, Fut::Error>;
68 where Fut: TryFuture,
80 where Fut: TryFuture,
114 Fut: TryFuture,
Dinto_future.rs2 use futures_core::future::{FusedFuture, Future, TryFuture};
23 impl<Fut: TryFuture + FusedFuture> FusedFuture for IntoFuture<Fut> {
27 impl<Fut: TryFuture> Future for IntoFuture<Fut> {
Dmod.rs10 future::TryFuture,
49 where Fut: TryFuture
134 impl<Fut: ?Sized + TryFuture> TryFutureExt for Fut {}
137 pub trait TryFutureExt: TryFuture {
392 Fut: TryFuture<Error = Self::Error>, in and_then()
437 Fut: TryFuture<Ok = Self::Ok>, in or_else()
501 Self::Ok: TryFuture<Error = Self::Error>, in try_flatten()
504 assert_future::<Result<<Self::Ok as TryFuture>::Ok, Self::Error>, _>(TryFlatten::new(self)) in try_flatten()
/external/rust/crates/futures-util/src/stream/try_stream/
Dtry_buffered.rs3 use futures_core::future::TryFuture;
18 St::Ok: TryFuture,
30 St::Ok: TryFuture,
46 St::Ok: TryFuture<Error = St::Error>,
48 type Item = Result<<St::Ok as TryFuture>::Ok, St::Error>;
85 S::Ok: TryFuture<Error = E>,
Dtry_buffer_unordered.rs3 use futures_core::future::TryFuture;
28 St::Ok: TryFuture,
43 St::Ok: TryFuture<Error = St::Error>,
45 type Item = Result<<St::Ok as TryFuture>::Ok, St::Error>;
81 S::Ok: TryFuture<Error = E>,
Dmod.rs10 future::{Future, TryFuture},
261 Fut: TryFuture<Error = Self::Error>, in and_then()
287 Fut: TryFuture<Ok = Self::Ok>, in or_else()
411 Fut: TryFuture<Ok = (), Error = Self::Error>, in try_for_each()
441 Fut: TryFuture<Ok = bool, Error = Self::Error>, in try_skip_while()
471 Fut: TryFuture<Ok = bool, Error = Self::Error>, in try_take_while()
647 Fut: TryFuture<Ok = Option<T>, Error = Self::Error>, in try_filter_map()
734 Fut: TryFuture<Ok = T, Error = Self::Error>, in try_fold()
843 Self::Ok: TryFuture<Error = Self::Error>, in try_buffer_unordered()
846 assert_stream::<Result<<Self::Ok as TryFuture>::Ok, Self::Error>, _>( in try_buffer_unordered()
[all …]
Dand_then.rs3 use futures_core::future::TryFuture;
39 Fut: TryFuture<Error = St::Error>,
51 Fut: TryFuture<Error = St::Error>,
89 Fut: TryFuture<Error = St::Error>,
Dtry_fold.rs3 use futures_core::future::{FusedFuture, Future, TryFuture};
40 Fut: TryFuture<Ok = T, Error = St::Error>,
55 Fut: TryFuture<Ok = T, Error = St::Error>,
65 Fut: TryFuture<Ok = T, Error = St::Error>,
Dor_else.rs3 use futures_core::future::TryFuture;
39 Fut: TryFuture<Ok = St::Ok>,
51 Fut: TryFuture<Ok = St::Ok>,
93 Fut: TryFuture<Ok = St::Ok>,
Dtry_for_each.rs3 use futures_core::future::{Future, TryFuture};
37 Fut: TryFuture<Ok = (), Error = St::Error>,
51 Fut: TryFuture<Ok = (), Error = St::Error>,
Dtry_take_while.rs3 use futures_core::future::TryFuture;
49 Fut: TryFuture<Ok = bool, Error = St::Error>,
68 Fut: TryFuture<Ok = bool, Error = St::Error>,
119 Fut: TryFuture<Ok = bool, Error = St::Error>,
Dtry_skip_while.rs3 use futures_core::future::TryFuture;
45 Fut: TryFuture<Ok = bool, Error = St::Error>,
63 Fut: TryFuture<Ok = bool, Error = St::Error>,
110 Fut: TryFuture<Ok = bool, Error = St::Error>,
Dtry_unfold.rs4 use futures_core::future::TryFuture;
62 Fut: TryFuture<Ok = Option<(Item, T)>>, in try_unfold()
98 Fut: TryFuture<Ok = Option<(Item, T)>>,
Dtry_filter_map.rs3 use futures_core::future::{TryFuture};
47 Fut: TryFuture<Ok = Option<T>, Error = St::Error>,
57 Fut: TryFuture<Ok = Option<T>, Error = St::Error>,
/external/rust/crates/futures/tests/
Dobject_safety.rs6 use futures::future::{FusedFuture, Future, TryFuture}; in future()
10 assert_is_object_safe::<&dyn TryFuture<Ok = (), Error = (), Output = Result<(), ()>>>(); in future()
/external/rust/crates/futures-core/src/
Dfuture.rs58 pub trait TryFuture: Future + private_try_future::Sealed { trait
76 impl<F, T, E> TryFuture for F
Dlib.rs20 #[doc(hidden)] pub use self::future::{Future, FusedFuture, TryFuture};
/external/rust/crates/futures/src/
Dlib.rs104 pub use futures_core::future::{Future, TryFuture};
173 pub use crate::future::{self, Future, TryFuture};

12