We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4587897 commit 9e15e25Copy full SHA for 9e15e25
futures-core/src/future.rs
@@ -44,19 +44,9 @@ where
44
}
45
46
47
-mod private_try_future {
48
- use super::Future;
49
-
50
- pub trait Sealed {}
51
52
- impl<F, T, E> Sealed for F where F: ?Sized + Future<Output = Result<T, E>> {}
53
-}
54
55
/// A convenience for futures that return `Result` values that includes
56
/// a variety of adapters tailored to such futures.
57
-pub trait TryFuture:
58
- Future<Output = Result<Self::Ok, Self::Error>> + private_try_future::Sealed
59
-{
+pub trait TryFuture: Future<Output = Result<Self::Ok, Self::Error>> {
60
/// The type of successful values yielded by this future
61
type Ok;
62
0 commit comments