feat(windows): backend() accessor for the daemon

A static WindowsBackend behind backend() -> &'static dyn Backend, the way
KDE spells it. Nothing calls it yet; the next revisions switch call sites
one cluster at a time (docs/dev/backend-switch.md).

Not a behaviour change. Verified: Windows clippy -D warnings via
tools/fast-check PASS.
This commit is contained in:
LGUG2Z committed 2026-10-31 10:22:39 -07:00
1 parent 0a2562b9cf
commit 07f931d6cb
1 file changed
+9
+9
View File
@@ -241,3 +241,12 @@ impl Backend for WindowsBackend {
)))
}
}
static BACKEND: WindowsBackend = WindowsBackend;
/// The backend the daemon calls, like `backend()` on KDE. Stateless, so one static serves every
/// thread. Call sites are being switched to it one cluster at a time: see
/// `docs/dev/backend-switch.md` for which are.
pub fn backend() -> &'static dyn Backend {
&BACKEND
}