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

Method load

libs/hbb_common/src/config.rs:427–439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

425
426impl Config2 {
427 fn load() -> Config2 {
428 let mut config = Config::load_::<Config2>("2");
429 if let Some(mut socks) = config.socks {
430 let (password, _, store) =
431 decrypt_str_or_original(&socks.password, PASSWORD_ENC_VERSION);
432 socks.password = password;
433 config.socks = Some(socks);
434 if store {
435 config.store();
436 }
437 }
438 config
439 }
440
441 pub fn file() -> PathBuf {
442 Config::file_("2")

Callers 5

takeMethod · 0.80
supported_decodingsMethod · 0.80
request_remote_desktopFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 8

decrypt_str_or_originalFunction · 0.85
load_pathFunction · 0.85
decrypt_vec_or_originalFunction · 0.85
symmetric_cryptFunction · 0.85
decompressFunction · 0.85
storeMethod · 0.80
is_emptyMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected