From 199e896d9625c8f5da46c0ff3e45dce04ea23f05 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sat, 21 Nov 2026 18:26:52 -0700 Subject: there's a concept of module visibility so that, for example, the battery module can self-hide and self-show when batteries are added or removed. also, said module now displays a list of battery names Force-Push: yes Change-Id: I8696f1b7e914aad3b1a663af12d6a00d9861b28c --- src/module.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/module.rs') diff --git a/src/module.rs b/src/module.rs index 6074457..6d32c40 100644 --- a/src/module.rs +++ b/src/module.rs @@ -30,5 +30,6 @@ pub trait CreatableModule: Module + Sized { pub trait Module { fn format(&mut self, facilities: &mut FacilityMap) -> Result; fn sleep_duration(&self) -> Option; + fn is_visible(&self) -> bool; } -- cgit 1.4.1