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

Function stream_quality_profile

packages/server/src/api/routes.rs:1529–1535  ·  view source on GitHub ↗
(id: &str)

Source from the content-addressed store, hash-verified

1527}
1528
1529fn stream_quality_profile(id: &str) -> Result<StreamQualityProfile, AppError> {
1530 STREAM_QUALITY_PROFILES
1531 .iter()
1532 .copied()
1533 .find(|profile| profile.id == id)
1534 .ok_or_else(|| AppError::bad_request(format!("Unknown stream quality profile `{id}`.")))
1535}
1536
1537fn stream_quality_profile_value(profile: &StreamQualityProfile) -> Value {
1538 json_value!({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected