Skip to main content

Crate edge_core

Crate edge_core 

Source
Expand description

Routing engine, service-adapter trait, and WebSocket client for edge-agent.

Re-exports§

pub use adapter::ServiceAdapter;
pub use adapter::StateUpdate;
pub use intent::Direction;
pub use intent::InputPrimitive;
pub use intent::Intent;
pub use intent::TouchArea;
pub use registry::GlyphRegistry;
pub use routing::RouteOutcome;
pub use routing::RoutedIntent;
pub use routing::RoutingEngine;
pub use ws_client::WsClient;

Modules§

adapter
Service adapter trait. Each concrete adapter (Roon, Hue, …) implements this to accept intents and publish state updates.
cache
Local file cache for the last-received EdgeConfig. When weave-server is unreachable on startup, the agent loads this file so local operation can continue with the previous mapping set.
intent
Input primitives and service intents exchanged by the routing engine.
registry
In-memory glyph registry populated from ConfigFull.
routing
Routing engine: applies a device input primitive against the active mappings to produce zero or more (service_type, target, intent) triples.
ws_client
WebSocket client to weave-server /ws/edge.