Skip to main content

record

Function record 

Source
pub fn record(dir: &str, req: &Value, data: &Value)
Expand description

Append one tx/rx entry to the shared log. dir is “tx” (request) or “rx” (response). req is always the originating request (for the cmd + id); data is what to summarise (the request for tx, the response for rx).