Skip to main content

parse_attr_plot_args

Function parse_attr_plot_args 

Source
pub fn parse_attr_plot_args(args: &[ArgValue]) -> Result<AttrPlotArgs, String>
Expand description

Parse NDAttrPlotConfig positional args in C order (NDPluginAttrPlot.cpp:308): port, n_attributes, cache_size, n_selected_blocks, in_port, in_addr, queue_size, ....

A present integer is honoured exactly — including an explicit 0, which is meaningful for cache_size (0 = unlimited per-buffer cache). Fallbacks apply only when an arg is absent; a real st.cmd always passes them, so the fallbacks only affect malformed calls.