This commit is contained in:
2026-09-13 14:37:59 +01:00
parent b81eb967ee
commit 74f59be3f8
11 changed files with 87 additions and 37 deletions
+2 -10
View File
@@ -8,7 +8,7 @@
use std::collections::HashMap;
use chrono::{DateTime, Local, Timelike};
use iced::futures::{channel::mpsc, SinkExt, StreamExt};
use iced::futures::{channel::mpsc, SinkExt};
use iced::Subscription;
use common::{ClockKind, ClockPayload, Endpoint, Inbox, Wire};
@@ -17,20 +17,12 @@ use common::{ClockKind, ClockPayload, Endpoint, Inbox, Wire};
pub const NAMESPACE: &str = "clock.";
/// Drives the clock, publishing only the kind modules last asked for.
#[derive(Default)]
pub struct ClockTicker {
last: DateTime<Local>,
// want: ClockKind,
}
impl Default for ClockTicker {
fn default() -> Self {
Self {
last: DateTime::default(),
// want: ClockKind::Seconds,
}
}
}
impl ClockTicker {
pub fn new() -> Self {
Self::default()