Skip to main content

Module stream_peek

Module stream_peek 

Source
Expand description

StreamUnobtrusivePeeker

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ยง

PeekFuture
Future from StreamUnobtrusivePeeker::peek
PeekerProj ๐Ÿ”’
StreamUnobtrusivePeeker
Wraps Stream and provides \[poll_]peek and unobtrusive_peek