/// Process server based on output type
Process server based on output type
Process server based on output type
pub fn format_spu_response_output<O>(
    out: std::sync::Arc<O>,
    spus: Vec<ScSpuMetadata>,
    output_type: OutputType,
) -> Result<(), CliError>
    where O: Terminal
{
    if spus.len() > 0 {
        out.render_list(&spus,output_type)?;
    } else {
        t_println!(out,"no spu");
    }
    Ok(())
}
pub fn format_spu_response_output < O > ( out : std :: sync :: Arc < O > , spus : Vec < ScSpuMetadata > , output_type : OutputType , ) -> Result < ( ) , CliError > where O : Terminal { if spus . len ( ) > 0 { out . render_list ( & spus , output_type ) ? ; } else { t_println ! ( out " " ) ; } Ok ( ( ) ) }
Process server based on output type
Process server based on output type
out
std::sync::Arc<O>
spus
Vec<ScSpuMetadata>
output_type
OutputType