pub fn encode_entry(
meta: CacheEntryMeta,
body: &[u8],
) -> Result<Vec<u8>, EntryError>Expand description
Encode a whole entry in memory.
ยงErrors
Returns an error when the metadata cannot be serialised or is too large.
pub fn encode_entry(
meta: CacheEntryMeta,
body: &[u8],
) -> Result<Vec<u8>, EntryError>Encode a whole entry in memory.
Returns an error when the metadata cannot be serialised or is too large.