MCPcopy Create free account
hub / github.com/Moosync/Moosync / save_selective

Function save_selective

src/utils/prefs.rs:51–61  ·  view source on GitHub ↗
(key: String, value: T)

Source from the content-addressed store, hash-verified

49
50#[tracing::instrument(level = "debug", skip(key, value))]
51pub fn save_selective<T>(key: String, value: T)
52where
53 T: Serialize + 'static,
54{
55 spawn_local(async move {
56 let res = super::invoke::save_selective(key.clone(), Some(value)).await;
57 if let Err(e) = res {
58 tracing::error!("Error saving selective {}: {:?}", key, e);
59 }
60 });
61}
62
63#[tracing::instrument(level = "debug", skip(key))]
64#[cfg(feature = "mock")]

Callers 5

PathsPrefFunction · 0.85
InputPrefFunction · 0.85
CheckboxPrefFunction · 0.85
DropdownPrefFunction · 0.85
save_selective_numberFunction · 0.85

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected