MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / serialise

Function serialise

nodedb-cluster/src/distributed_array/handler.rs:237–241  ·  view source on GitHub ↗
(val: T)

Source from the content-addressed store, hash-verified

235}
236
237fn serialise<T: zerompk::ToMessagePack>(val: T) -> Result<Vec<u8>> {
238 zerompk::to_msgpack_vec(&val).map_err(|e| ClusterError::Codec {
239 detail: format!("array response serialise: {e}"),
240 })
241}
242
243#[cfg(test)]
244mod tests {

Callers 5

handle_sliceFunction · 0.85
handle_aggFunction · 0.85
handle_putFunction · 0.85
handle_deleteFunction · 0.85
handle_surrogate_bitmapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected