Crate async_peek

Source
Expand description

This crate provides AsyncPeek, a trait to read data asynchronously without removing it from the queue (like when using the blocking methods std::net::TcpStream::peek() and std::net::UdpSocket::peek()).

Structs§

Peek
Future for the peek() function.

Traits§

AsyncPeek
Read data asynchronously without removing it from the queue.
AsyncPeekExt
An extension trait which adds utility methods to AsyncPeek types.