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

Function set_stream_quality

packages/server/src/api/routes.rs:1378–1383  ·  view source on GitHub ↗
(
    State(state): State<AppState>,
    Json(payload): Json<StreamQualityPayload>,
)

Source from the content-addressed store, hash-verified

1376}
1377
1378async fn set_stream_quality(
1379 State(state): State<AppState>,
1380 Json(payload): Json<StreamQualityPayload>,
1381) -> Result<Json<Value>, AppError> {
1382 apply_stream_quality_payload(&state, &payload).map(json)
1383}
1384
1385pub(crate) fn apply_stream_quality_payload(
1386 state: &AppState,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected