MCPcopy Create free account
hub / github.com/aws/clock-bound / vmclock

Method vmclock

clock-bound/src/daemon/io.rs:258–265  ·  view source on GitHub ↗

Returns `VMCLock` if it has been initialized

(&self)

Source from the content-addressed store, hash-verified

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> {

Callers 1

constructMethod · 0.80

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected