Skip to main content

fmt_node_with_controller

Function fmt_node_with_controller 

Source
pub fn fmt_node_with_controller(
    f: &mut Formatter<'_>,
    struct_name: &str,
    config: &impl Debug,
    controller_name: &str,
    update_counter: u64,
) -> Result
Expand description

Formats a Debug impl for a node whose controller field is a trait object that can’t derive Debug (e.g. Box<dyn SomeController>).

Shared by node types that expose config, a controller identified by controller_name (typically self.controller.name()), and an update_counter field.