Returns 32-bit signed integer configuration value for the given key.
(&self, key: &str)
| 616 | |
| 617 | /// Returns 32-bit signed integer configuration value for the given key. |
| 618 | pub async fn get_raw_config_int(&self, key: &str) -> Result<Option<i32>> { |
| 619 | self.get_raw_config(key) |
| 620 | .await |
| 621 | .map(|s| s.and_then(|s| s.parse().ok())) |
| 622 | } |
| 623 | |
| 624 | /// Returns 32-bit unsigned integer configuration value for the given key. |
| 625 | pub async fn get_raw_config_u32(&self, key: &str) -> Result<Option<u32>> { |
no test coverage detected