MCPcopy Create free account
hub / github.com/IBM/ACE-RISCV / try_read

Method try_read

security-monitor/src/core/control_data/storage.rs:64–67  ·  view source on GitHub ↗
(op: O)

Source from the content-addressed store, hash-verified

62 }
63
64 fn try_read<F, O>(op: O) -> Result<F, Error>
65 where O: FnOnce(&RwLockReadGuard<'_, ControlDataStorage>) -> Result<F, Error> {
66 op(&CONTROL_DATA_STORAGE.get().expect(Self::NOT_INITIALIZED).read())
67 }
68
69 pub fn try_write<F, O>(op: O) -> Result<F, Error>
70 where O: FnOnce(&mut RwLockWriteGuard<'static, ControlDataStorage>) -> Result<F, Error> {

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected