pub fn effective_effort(
session: Option<Effort>,
profile: Option<Effort>,
model: &str,
) -> (Option<Effort>, EffortSource)Expand description
The effort actually in force for model, and where it came from.
The ONLY derivation of this. murmur and the Hub both call it; neither computes its own, because two surfaces answering one question differently is a failure this codebase has already shipped twice.
A stored level the model cannot accept is narrowed to the nearest level it can, and the source is preserved — the user did set it; they are simply getting the closest thing that will not 400.