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§
- Inspect
Bytes - Wrapper to log bytes in an
inspect_log!
orinspect_insert!
macro. - Inspect
List - Wrapper to log a list of items in
inspect_log!
orinspect_insert!
macro. Each item in the list must be a type that implementsWriteInspect
- Inspect
List Closure - Wrapper around a list
[T]
and a closure functionF
that determines how to map and log each value ofT
ininspect_log!
orinspect_insert!
macro. - Inspect
Uint Array - Wrapper to log uint array in an
inspect_log!
orinspect_insert!
macro.
Traits§
- Write
Inspect - Trait for writing to a node in bounded lists.