Module darkfi_serial::async_lib
source · Macros§
Structs§
- Gives an in-memory buffer a cursor for reading and writing.
Traits§
- Data which can asynchronously be decoded in a consensus-consistent way.
- Data which can asynchronously be encoded in a consensus-consistent way.
- Read bytes asynchronously.
- Extensions of
AsyncRead
to decode data as per Bitcoin consensus. - Write bytes asynchronously.
- Extensions of
AsyncWrite
to encode data as per Bitcoin consensus. - Extension trait for
AsyncRead
. - Extension trait for
AsyncWrite
.
Functions§
- Asynchronously deserialize an object from a vector. Will error if said deserialization doesn’t consume the entire vector.
- Asynchronously deserialize an object from a vector, but do not error if the entire vector is not consumed.
- Asynchronously encode an object into a vector.