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

Method set

libs/hbb_common/src/config.rs:459–467  ·  view source on GitHub ↗
(cfg: Config2)

Source from the content-addressed store, hash-verified

457 }
458
459 pub fn set(cfg: Config2) -> bool {
460 let mut lock = CONFIG2.write().unwrap();
461 if *lock == cfg {
462 return false;
463 }
464 *lock = cfg;
465 lock.store();
466 true
467 }
468}
469
470pub fn load_path<T: serde::Serialize + serde::de::DeserializeOwned + Default + std::fmt::Debug>(

Callers 1

EmailConfiguratorFunction · 0.80

Calls 5

is_option_can_saveFunction · 0.85
writeMethod · 0.80
storeMethod · 0.80
is_emptyMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected