Module segsource::sync[][src]

This is supported 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

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

Functions

Like super::async_u8_vec_from_file but uses a bytes::Bytes instead of a Vec<u8>.

Reads all the data from a file and asynchronously reads it into a Vec<u8>.

Like super::u8_vec_from_async_bufread but uses a bytes::Bytes instead of a Vec<u8>.

Reads all the data from a tokio::io::AsyncBufRead and reads it into a Vec<u8>.