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

Method new

crates/openshell-server/src/multiplex.rs:134–136  ·  view source on GitHub ↗
(state: Arc<ServerState>)

Source from the content-addressed store, hash-verified

132 #[must_use]
133 #[allow(clippy::missing_const_for_fn)]
134 pub fn new(state: Arc<ServerState>) -> Self {
135 Self { state }
136 }
137
138 /// Serve a connection, routing to gRPC or HTTP based on content-type.
139 pub async fn serve<S>(&self, stream: S) -> Result<(), Box<dyn std::error::Error + Send + Sync>>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected