Module sync

Source
Available on crate feature async only.
Expand description

Various utilities for developing async Sources. Unless you’re actually developing your own Sources, this module probably won’t be very useful to you.

Structs§

BytesFromAsyncBufread
VecFromAsyncBufread
A future returned by u8_vec_from_async_bufread and bytes_from_async_bufread. See those functions for more details.

Functions§

async_bytes_from_file
Like super::async_u8_vec_from_file but uses a bytes::Bytes instead of a Vec<u8>.
async_u8_vec_from_file
Reads all the data from a file and asynchronously reads it into a Vec<u8>.
bytes_from_async_bufread
Like super::u8_vec_from_async_bufread but uses a bytes::Bytes instead of a Vec<u8>.
u8_vec_from_async_bufread
Reads all the data from a tokio::io::AsyncBufRead and reads it into a Vec<u8>.