Skip to main content

Clock

Trait Clock 

Source
pub trait Clock {
    // Required method
    fn hour(&self) -> u32;
}
Expand description

Injectable clock for Plan 2’s live session; Plan 1’s pure select takes an hour directly.

Required Methods§

Source

fn hour(&self) -> u32

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§