pub fn parse_channel_ref(ref_str: &str) -> ChannelType
Parse a ref string to determine its channel type.