pub fn parse_daemon_spec_value(v: &Value) -> Result<DaemonSpec, String>Expand description
Parse a YAML/JSON scalar into a DaemonSpec.
Accepted forms:
true/1/"true"/"on"→MaxFibers(1)false/0/"false"/"off"→Disabled- non-negative integer N ≥ 1 →
MaxFibers(N) - non-negative integer 0 →
Disabled
Rejected forms (returns descriptive error):
- negative integers
- non-integer numbers (1.5, NaN, …)
- strings other than the accepted set
- null, arrays, objects
Public so the unit + proptest layers can exercise it directly without a full YAML round-trip.