MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / effective_bool

Function effective_bool

crates/openshell-sandbox/src/lib.rs:1965–1974  ·  view source on GitHub ↗
(value: bool)

Source from the content-addressed store, hash-verified

1963 use std::sync::atomic::{AtomicBool, Ordering};
1964
1965 fn effective_bool(value: bool) -> openshell_core::proto::EffectiveSetting {
1966 openshell_core::proto::EffectiveSetting {
1967 value: Some(openshell_core::proto::SettingValue {
1968 value: Some(openshell_core::proto::setting_value::Value::BoolValue(
1969 value,
1970 )),
1971 }),
1972 scope: openshell_core::proto::SettingScope::Global.into(),
1973 }
1974 }
1975
1976 #[test]
1977 fn apply_ocsf_json_setting_enables_from_initial_settings_snapshot() {

Calls

no outgoing calls