pub fn parse_class(spec: &str) -> Result<(TrafficClass, u32), String>Expand description
Parse a --class spec: NAME[:WEIGHT], where NAME is a preset
(voice/video/best-effort/background) or dscpNN (NN = 0-63).
Weight defaults to 1. Returns the class plus its relative weight.