Module async_lib

Module async_lib 

Source

Macros§

impl_int_encodable 🔒
tuple_encode 🔒

Structs§

Cursor
Gives an in-memory buffer a cursor for reading and writing.

Traits§

AsyncDecodable
Data which can asynchronously be decoded in a consensus-consistent way.
AsyncEncodable
Data which can asynchronously be encoded in a consensus-consistent way.
AsyncRead
Read bytes asynchronously.
AsyncReadExt
Extensions of AsyncRead to decode data as per Bitcoin consensus.
AsyncWrite
Write bytes asynchronously.
AsyncWriteExt
Extensions of AsyncWrite to encode data as per Bitcoin consensus.
FutAsyncReadExt
Extension trait for AsyncRead.
FutAsyncWriteExt
Extension trait for AsyncWrite.

Functions§

deserialize_async
Asynchronously deserialize an object from a vector. Will error if said deserialization doesn’t consume the entire vector.
deserialize_async_limited
Asynchronously deserialize a variable-length object from a vector, but enforce a maximum size limit.
deserialize_async_limited_partial
Asynchronously deserialize a variable-length object from a vector, enforce a maximum size limit, but do not error if the entire vector is not consumed.
deserialize_async_partial
Asynchronously deserialize an object from a vector, but do not error if the entire vector is not consumed.
serialize_async
Asynchronously encode an object into a vector.

Attribute Macros§

async_trait