(&self)
| 186 | } |
| 187 | |
| 188 | pub fn phc(&self) -> Option<&Phc> { |
| 189 | self.phc.as_ref().and_then(|s| match &s.state { |
| 190 | SourceState::Initialized(phc) => Some(phc), |
| 191 | SourceState::Running => None, |
| 192 | }) |
| 193 | } |
| 194 | |
| 195 | /// Returns true if a PHC source exists (has been created). |
| 196 | pub fn phc_exists(&self) -> bool { |
no test coverage detected