| Crates.io | byteorder_async |
| lib.rs | byteorder_async |
| version | 1.2.0 |
| created_at | 2020-04-22 14:01:25.507894+00 |
| updated_at | 2020-04-25 00:07:41.645323+00 |
| description | Library for reading/writing numbers in big-endian and little-endian asynchronously. |
| homepage | https://github.com/pigeonhands/byteorder_async |
| repository | https://github.com/pigeonhands/byteorder_async |
| max_upload_size | |
| id | 232944 |
| size | 247,549 |
This is a fork of byteorder with the addition of:
tokio::iofutures::iofor futures::io
byteorder_async = {version="1.2.0", features=["futures_async"] }
for tokio::io
byteorder_async = {version="1.2.0", features=["tokio_async"] }
Basic async usage:
use byteorder_async::ReaderToByteOrder;
let reader : io::AsyncRead = ...;
// after the byte_order its the same calls.
let byte = reader.byte_order().read_u8().await;
Note:
Thre reason for the byte_order() call is because async fn is not supprted in traits yet.