MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / current

Method current

src/client_identity.rs:19–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18impl DaemonClientIdentity {
19 pub fn current() -> Result<Self> {
20 let profile_root =
21 crate::config::user_data_dir().ok_or_else(|| TraceDecayError::Config {
22 message: "could not determine TraceDecay user data directory".to_string(),
23 })?;
24 let global_db_path =
25 crate::global_db::global_db_path().ok_or_else(|| TraceDecayError::Config {
26 message: "could not determine TraceDecay global database path".to_string(),
27 })?;
28 Ok(Self {
29 profile_root,
30 global_db_path,
31 })
32 }
33}

Callers 2

AssociationGraphFunction · 0.45
SemanticMapFunction · 0.45

Calls 2

user_data_dirFunction · 0.85
global_db_pathFunction · 0.85

Tested by

no test coverage detected