Get a clone of a rendezvous handle if it exists
(&self, id: u64)
| 211 | |
| 212 | /// Get a clone of a rendezvous handle if it exists |
| 213 | pub fn rendezvous(&self, id: u64) |
| 214 | -> Option<Arc<RwLock<Rendezvous>>> { |
| 215 | self.process.read().handles.get(id as usize) // Option<&Option<Arc<>>> |
| 216 | .unwrap_or(&None) // &Option<Arc<>> |
| 217 | .as_ref() // Option<&Arc<>> |
| 218 | .map(|rv| rv.clone()) // Option<Arc<>> |
| 219 | } |
| 220 | |
| 221 | /// Take the rendezvous, leaving handle empty (None) |
| 222 | pub fn take_rendezvous(&self, id: u64) |
no test coverage detected