Returns `VMCLock` if it has been initialized
(&self)
| 256 | |
| 257 | /// Returns `VMCLock` if it has been initialized |
| 258 | pub fn vmclock(&self) -> Option<&VMClock> { |
| 259 | self.vmclock |
| 260 | .as_ref() |
| 261 | .and_then(|source| match &source.state { |
| 262 | SourceState::Initialized(vmclock) => Some(vmclock), |
| 263 | SourceState::Running => None, |
| 264 | }) |
| 265 | } |
| 266 | |
| 267 | // Creates a new [`watch::Receiver`] connected to the clock distribution watch [`watch::Sender`]. |
| 268 | pub fn clock_disruption_receiver(&self) -> watch::Receiver<ClockDisruptionEvent> { |