MCPcopy Create free account
hub / github.com/argumentcomputer/ix / env_duration_ms_optional

Function env_duration_ms_optional

crates/ffi/src/kernel.rs:2100–2106  ·  view source on GitHub ↗
(var: &str, default: Duration)

Source from the content-addressed store, hash-verified

2098 Err(e) => {
2099 return LeanIOResult::error_string(&format!(
2100 "rs_env_extract: failed to read {path}: {e}"
2101 ));
2102 },
2103 };
2104 let mut slice: &[u8] = &bytes;
2105 let full = match IxonEnv::get(&mut slice) {
2106 Ok(env) => env,
2107 Err(e) => {
2108 return LeanIOResult::error_string(&format!(
2109 "rs_env_extract: failed to deserialize {path}: {e}"

Callers 1

newMethod · 0.85

Calls 1

varFunction · 0.50

Tested by

no test coverage detected