MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / env_u32

Function env_u32

packages/server/src/api/routes.rs:1589–1595  ·  view source on GitHub ↗
(name: &str, fallback: u32, minimum: u32, maximum: u32)

Source from the content-addressed store, hash-verified

1587}
1588
1589fn env_u32(name: &str, fallback: u32, minimum: u32, maximum: u32) -> u32 {
1590 env::var(name)
1591 .ok()
1592 .and_then(|value| value.parse::<u32>().ok())
1593 .unwrap_or(fallback)
1594 .clamp(minimum, maximum)
1595}
1596
1597async fn client_stream_stats(State(state): State<AppState>) -> Json<Value> {
1598 json(json_value!({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected