async-peek 0.1.2

Read data asynchronously without removing it from the queue
Documentation

Read data asynchronously without removing it from the queue

img img img

This crate provides 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()).

Support matrix

name tcp udp
smol and async-io [x] [x]
async-net [x] [x]
async-std [x] [ ]
tokio [x] [ ]

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.