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

Method get_capabilities

crates/openshell-server/src/test_support.rs:182–195  ·  view source on GitHub ↗
(
        &self,
        _request: Request<GetCapabilitiesRequest>,
    )

Source from the content-addressed store, hash-verified

180 type WatchSandboxesStream = WatchStream;
181
182 async fn get_capabilities(
183 &self,
184 _request: Request<GetCapabilitiesRequest>,
185 ) -> Result<Response<GetCapabilitiesResponse>, Status> {
186 let response = self.with_state(|state| {
187 state.calls.push(FakeComputeDriverCall::GetCapabilities);
188 GetCapabilitiesResponse {
189 driver_name: state.driver_name.clone(),
190 driver_version: state.driver_version.clone(),
191 default_image: state.default_image.clone(),
192 }
193 });
194 Ok(Response::new(response))
195 }
196
197 async fn validate_sandbox_create(
198 &self,

Callers

nothing calls this directly

Calls 2

with_stateMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected