()
| 21 | const NOT_INITIALIZED: &'static str = "Bug: Control data not initialized"; |
| 22 | |
| 23 | pub fn initialize() -> Result<(), Error> { |
| 24 | let control_data = Self { confidential_vms: BTreeMap::new() }; |
| 25 | ensure_not!(CONTROL_DATA_STORAGE.is_completed(), Error::Reinitialization())?; |
| 26 | CONTROL_DATA_STORAGE.call_once(|| RwLock::new(control_data)); |
| 27 | Ok(()) |
| 28 | } |
| 29 | |
| 30 | pub fn unique_id(&self) -> Result<ConfidentialVmId, Error> { |
| 31 | self.confidential_vms |
nothing calls this directly
no outgoing calls
no test coverage detected