Expand description
The memory tracker needs a way to look at the next item of a stream (if there is one, or there can immediately be one), without getting involved with the async tasks.
Re-exportsยง
use educe::Educe;๐use futures::Stream;๐use futures::stream::FusedStream;๐use pin_project::pin_project;๐use crate::peekable_stream::PeekableStream;๐use crate::peekable_stream::UnobtrusivePeekableStream;๐use std::fmt::Debug;๐use std::fmt::Debug;๐use std::future::Future;๐use std::pin::Pin;๐use std::task::Context;๐use std::task::Poll;๐use std::task::Waker;๐use std::task::Poll::*;๐
Structsยง
- Peek
Future - Future from
StreamUnobtrusivePeeker::peek - Peeker
Proj ๐ - Stream
Unobtrusive Peeker - Wraps
Streamand provides\[poll_]peekandunobtrusive_peek