fn format_response_output<O>(
    out: std::sync::Arc<O>,
    list_topics: ListTopics,
    output_type: OutputType,
) -> Result<(), CliError>
where
    O: Terminal,
{
    if list_topics.len() > 0 {
        out.render_list(&list_topics, output_type)
    } else {
        t_println!(out, "No topics found");
        Ok(())
    }
}
/// Process server based on output type
Process server based on output type
Process server based on output type
fn format_response_output<O>(
    out: std::sync::Arc<O>,
    list_topics: ListTopics,
    output_type: OutputType,
) -> Result<(), CliError>
where
    O: Terminal,
{
    if list_topics.len() > 0 {
        out.render_list(&list_topics, output_type)
    } else {
        t_println!(out, "No topics found");
        Ok(())
    }
}
fn format_response_output < O > ( out : std :: sync :: Arc < O > , list_topics : ListTopics , output_type : OutputType , ) -> Result < ( ) , CliError > where O : Terminal , { if list_topics . len ( ) > 0 { out . render_list ( & list_topics , output_type ) } else { t_println ! ( out " " ) ; Ok ( ( ) ) } }
Process server based on output type
Process server based on output type
out
std::sync::Arc<O>
list_topics
ListTopics
output_type
OutputType
out
std::sync::Arc<O>
list_topics
ListTopics
output_type
OutputType