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

Method for_protocol

crates/openshell-supervisor-network/src/l7/jsonrpc.rs:27–32  ·  view source on GitHub ↗
(protocol: crate::l7::L7Protocol)

Source from the content-addressed store, hash-verified

25
26impl JsonRpcInspectionMode {
27 pub(crate) fn for_protocol(protocol: crate::l7::L7Protocol) -> Self {
28 match protocol {
29 crate::l7::L7Protocol::Mcp => Self::Mcp,
30 _ => Self::JsonRpc,
31 }
32 }
33}
34
35/// Endpoint-specific JSON-RPC-family parser settings.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected