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

Method with_state

crates/openshell-server/src/test_support.rs:136–142  ·  view source on GitHub ↗
(&self, f: impl FnOnce(&mut FakeComputeDriverState) -> R)

Source from the content-addressed store, hash-verified

134 }
135
136 fn with_state<R>(&self, f: impl FnOnce(&mut FakeComputeDriverState) -> R) -> R {
137 let mut state = self
138 .state
139 .lock()
140 .expect("fake compute driver state poisoned");
141 f(&mut state)
142 }
143}
144
145#[cfg(unix)]

Callers 15

with_driver_nameMethod · 0.80
with_driver_versionMethod · 0.80
with_default_imageMethod · 0.80
callsMethod · 0.80
clear_callsMethod · 0.80
get_capabilitiesMethod · 0.80
get_sandboxMethod · 0.80
list_sandboxesMethod · 0.80
create_sandboxMethod · 0.80
stop_sandboxMethod · 0.80
delete_sandboxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected