Crate darkfi_serial

Crate darkfi_serial 

Source

Modules§

async_lib 🔒
endian 🔒
types 🔒
Encodings for external crates

Macros§

decoder_fn 🔒
encode_payload
Encode a dynamic set of arguments to a buffer.
encode_payload_async
Asynchronously encode a dynamic set of arguments to a buffer.
encoder_fn 🔒
impl_int_encodable 🔒
tuple_encode 🔒

Structs§

VarInt
Variable-integer encoding.

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.
Decodable
Data which can be decoded in a consensus-consistent way.
Encodable
Data which can be encoded in a consensus-consistent way.
FutAsyncReadExt
Extension trait for AsyncRead.
FutAsyncWriteExt
Extension trait for AsyncWrite.
ReadExt
Extensions of Read to decode data as per Bitcoin consensus.
WriteExt
Extensions of Write to encode data as per Bitcoin consensus.

Functions§

deserialize
Deserialize an object from a vector. Will error if said deserialization doesn’t consume the entire vector.
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.
deserialize_limited
Deserialize a variable-length object from a vector, but enforce a maximum size limit.
deserialize_limited_partial
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_partial
Deserialize an object from a vector, but do not error if the entire vector is not consumed.
serialize
Encode an object into a vector.
serialize_async
Asynchronously encode an object into a vector.

Attribute Macros§

async_trait

Derive Macros§

SerialDecodable
SerialEncodable