Skip to main content

parse_partition_dir

Function parse_partition_dir 

Source
pub fn parse_partition_dir(name: &str) -> Option<(String, i32)>
Expand description

Parses <topic>-<partition> from a directory name. It returns None when the name does not match the pattern.