refactor(review): shell current-thread runtime + единый дефолт; PowerClient parse_enum; тесты на ipc::names

- shell: new_current_thread рантайм (без пула на холодном старте, #11); единый Initial::default().
- PowerClient: generic parse_enum (убрал 3 копии map_err).
- ipc::names::power::MOCK_IFACE; интеграционные тесты — через ipc::names (не хардкод).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Alexander <akotenev2003@gmail.com>
This commit is contained in:
2026-06-24 14:36:50 +03:00
parent 69beaad596
commit bfe490e899
5 changed files with 29 additions and 22 deletions
+2
View File
@@ -5,6 +5,8 @@ pub mod power {
pub const NAME: &str = "ru.shturman.Power";
pub const PATH: &str = "/ru/shturman/Power";
pub const IFACE: &str = "ru.shturman.Power1";
/// dev-mock «fake-ACC» (интерфейс на том же объекте; только dev-сборка).
pub const MOCK_IFACE: &str = "ru.shturman.dev.PowerMock1";
}
pub mod settings {