Function darkfi_serial::deserialize_async

source ·
pub async fn deserialize_async<T: AsyncDecodable>(data: &[u8]) -> Result<T>
Expand description

Asynchronously deserialize an object from a vector. Will error if said deserialization doesn’t consume the entire vector.