Skip to main content

TimeSource

Trait TimeSource 

Source
pub trait TimeSource {
    // Required methods
    fn mode(&self, at: &Zoned) -> Mode;
    fn starts(&self, from: &Zoned, until: &Zoned) -> Vec<Zoned>;
}
Expand description

What time it is at any moment (reach::Clock, through Live): sleep, a pause, free time, the hours, as they stand now.

Required Methods§

Source

fn mode(&self, at: &Zoned) -> Mode

Source

fn starts(&self, from: &Zoned, until: &Zoned) -> Vec<Zoned>

Where what time it is changes between from and until: each frame’s start, in order, after from.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§