MCPcopy Create free account
hub / github.com/chatmail/core / get_raw_config_int

Method get_raw_config_int

src/sql.rs:618–622  ·  view source on GitHub ↗

Returns 32-bit signed integer configuration value for the given key.

(&self, key: &str)

Source from the content-addressed store, hash-verified

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>> {

Callers 5

get_raw_config_boolMethod · 0.80
get_infoMethod · 0.80
check_backup_versionFunction · 0.80
runFunction · 0.80
migrate_socks_configMethod · 0.80

Calls 2

get_raw_configMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected