MCPcopy Index your code
hub / github.com/endbasic/endbasic / Clock

Interface Clock

web/src/store.rs:25–28  ·  view source on GitHub ↗

Mechanism to obtain the current time to facilitate testing.

Source from the content-addressed store, hash-verified

23
24/// Mechanism to obtain the current time to facilitate testing.
25trait Clock {
26 /// Obtains the current time.
27 fn now(&self) -> io::Result<OffsetDateTime>;
28}
29
30/// Clock that obtains the current time from the Javascript runtime.
31#[derive(Default)]

Callers

nothing calls this directly

Implementers 1

store.rsweb/src/store.rs

Calls

no outgoing calls

Tested by

no test coverage detected