pub(crate) fn checked_device_name(
name: Option<&str>,
) -> Result<Option<String>, Error>Expand description
A device name as libpulse gets it: None and the empty string both mean the system
default, and an interior NUL is refused. Shared by both settings’ validation.