(&mut self, name: &str, content: &[u8])
| 73 | } |
| 74 | |
| 75 | async fn put(&mut self, name: &str, content: &[u8]) -> io::Result<()> { |
| 76 | if let Some((prev_content, _readers)) = self.programs.get_mut(name) { |
| 77 | content.clone_into(prev_content); |
| 78 | return Ok(()); |
| 79 | }; |
| 80 | self.programs.insert(name.to_owned(), (content.to_owned(), HashSet::new())); |
| 81 | Ok(()) |
| 82 | } |
| 83 | |
| 84 | async fn update_acls( |
| 85 | &mut self, |