(&self, data: Vec<u8>)
| 26 | } |
| 27 | |
| 28 | pub fn insert(&self, data: Vec<u8>) -> Uuid { |
| 29 | let id = Uuid::new_v4(); |
| 30 | self.store.insert(id, (Instant::now(), data)); |
| 31 | id |
| 32 | } |
| 33 | |
| 34 | pub fn remove(&self, id: &Uuid) -> Option<Vec<u8>> { |
| 35 | self.store.remove(id).map(|(_, (_, data))| data) |
no outgoing calls
no test coverage detected