pub fn encode_string(arg: &str) -> Result<String>Expand description
Encodes provided string, removing potentially unsafe characters.
From the libudev documentation:
Encode all potentially unsafe characters of a string to the
corresponding 2 char hex value prefixed by '\x'.Returns: Ok(String) on success, Err(Error) otherwise