Module log

Source
Expand description

Provides convenience macros for writing to an inspect bounded list (bounded log)

§Example

let inspector = Inspector::default();
let list_node = inspector.root().create_child("list_node");
let list_node = BoundedListNode::new(list_node, 10);
inspect_log!(list_node, k1: "1".to_string(), meaning_of_life: 42u64, k3: 3i64, k4: 4f64);
// Inspect now has:
// root: {
//   list_node: {
//     "0": { "@time": <timestamp>, k1: "1", meaning_of_life: 42, k3: 3, k4: 4 }
//   }
// }

Structs§

InspectBytes
Wrapper to log bytes in an inspect_log! or inspect_insert! macro.
InspectList
Wrapper to log a list of items in inspect_log! or inspect_insert! macro. Each item in the list must be a type that implements WriteInspect
InspectListClosure
Wrapper around a list [T] and a closure function F that determines how to map and log each value of T in inspect_log! or inspect_insert! macro.
InspectUintArray
Wrapper to log uint array in an inspect_log! or inspect_insert! macro.

Traits§

WriteInspect
Trait for writing to a node in bounded lists.