We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f4a017 commit a2dc753Copy full SHA for a2dc753
src/stream/stream/peekable.rs
@@ -7,7 +7,14 @@ use crate::task::{Context, Poll};
7
#[allow(missing_debug_implementations)]
8
pub struct Peekable<S: Stream> {
9
stream: S,
10
- peeked: Option<Option<S::Item>>,
+ peeked: Option<PeekFuture<Option<S::Item>>>,
11
+}
12
+
13
+pub struct PeekFuture<'a, T: Unpin + ?Sized> {
14
+ pub(crate) stream: &'a T,
15
16
17
+impl<T: Stream + Unpin + ?Sized> Future for PeekFuture<'_, T> {
18
}
19
20
0 commit comments