MCPcopy Create free account
hub / github.com/Recordscript/recordscript / store

Method store

libs/hbb_common/src/config.rs:445–453  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

443 }
444
445 fn store(&self) {
446 let mut config = self.clone();
447 if let Some(mut socks) = config.socks {
448 socks.password =
449 encrypt_str_or_original(&socks.password, PASSWORD_ENC_VERSION, ENCRYPT_MAX_LEN);
450 config.socks = Some(socks);
451 }
452 Config::store_(&config, "2");
453 }
454
455 pub fn get() -> Config2 {
456 return CONFIG2.read().unwrap().clone();

Callers 15

set_enableMethod · 0.80
updateMethod · 0.80
releaseMethod · 0.80
check_available_hwcodecFunction · 0.80
handle_responseFunction · 0.80
mainFunction · 0.80
loadMethod · 0.80
setMethod · 0.80
update_latencyMethod · 0.80
set_idMethod · 0.80
set_nat_typeMethod · 0.80
set_serialMethod · 0.80

Calls 7

encrypt_str_or_originalFunction · 0.85
encrypt_vec_or_originalFunction · 0.85
store_pathFunction · 0.85
compressFunction · 0.85
symmetric_cryptFunction · 0.85
cloneMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected