/// Creates a new event logger. All inspect data will be written as children of `parent`.
Creates a new event logger. All inspect data will be written as children of `parent`.
Creates a new event logger . All inspect data will be written as children of ` parent ` .
pub fn new(node: inspect::Node) -> Self {
        let counters_node = node.create_child("event_counts");
        let recent_events_node = node.create_child("recent_events");
        Self {
            _node: node,
            counters: BTreeMap::new(),
            counters_node,
            component_log_node: BoundedListNode::new(recent_events_node, RECENT_EVENT_LIMIT),
        }
    }
pub fn new ( node : inspect :: Node ) -> Self { let counters_node = node . create_child ( " " ) ; let recent_events_node = node . create_child ( " " ) ; Self { _node : node , counters : BTreeMap :: new ( ) , counters_node , component_log_node : BoundedListNode :: new ( recent_events_node , RECENT_EVENT_LIMIT ) , } }
Creates a new event logger.
Creates a new event logger .
node
inspect::Node