pub struct DaemonClient { /* private fields */ }Expand description
D-Bus client wrapper for the daemon.
Implementations§
Source§impl DaemonClient
impl DaemonClient
Sourcepub async fn connect() -> Result<Self>
pub async fn connect() -> Result<Self>
Attempts to connect to the daemon via D-Bus with auto bus detection.
Tries session bus first, falls back to system bus.
Sourcepub async fn connect_with_bus(bus_type: BusType) -> Result<Self>
pub async fn connect_with_bus(bus_type: BusType) -> Result<Self>
Attempts to connect to the daemon via D-Bus with specified bus type.
Sourcepub async fn set_orientation(&self, orientation: &str) -> Result<()>
pub async fn set_orientation(&self, orientation: &str) -> Result<()>
Sets the display orientation.
Sourcepub async fn get_orientation(&self) -> Result<String>
pub async fn get_orientation(&self) -> Result<String>
Gets the current orientation.
Sourcepub async fn clear_display(&self, color: &str) -> Result<()>
pub async fn clear_display(&self, color: &str) -> Result<()>
Clears the display to a solid color.
Sourcepub async fn set_led(&self, theme: u8, intensity: u8, speed: u8) -> Result<()>
pub async fn set_led(&self, theme: u8, intensity: u8, speed: u8) -> Result<()>
Sets LED parameters.
Sourcepub async fn list_themes(&self) -> Result<Vec<String>>
pub async fn list_themes(&self) -> Result<Vec<String>>
Lists available color themes (IDs only).
Sourcepub async fn list_themes_detailed(&self) -> Result<Vec<String>>
pub async fn list_themes_detailed(&self) -> Result<Vec<String>>
Lists available color themes with display names (JSON-encoded).
Sourcepub async fn list_face_ids(&self) -> Result<Vec<String>>
pub async fn list_face_ids(&self) -> Result<Vec<String>>
Lists available faces (IDs only).
Sourcepub async fn list_faces(&self) -> Result<Vec<String>>
pub async fn list_faces(&self) -> Result<Vec<String>>
Lists available faces with display names (JSON-encoded).
Sourcepub async fn list_network_interfaces(&self) -> Result<Vec<String>>
pub async fn list_network_interfaces(&self) -> Result<Vec<String>>
Lists available network interfaces.
Sourcepub async fn get_screen_png(&self) -> Result<Vec<u8>>
pub async fn get_screen_png(&self) -> Result<Vec<u8>>
Gets the screen as PNG data.
Sourcepub async fn is_connected(&self) -> Result<bool>
pub async fn is_connected(&self) -> Result<bool>
Checks if the LCD is connected.
Sourcepub async fn is_web_enabled(&self) -> Result<bool>
pub async fn is_web_enabled(&self) -> Result<bool>
Checks if the web UI is enabled.
Sourcepub async fn list_complications(
&self,
) -> Result<Vec<(String, String, String, bool)>>
pub async fn list_complications( &self, ) -> Result<Vec<(String, String, String, bool)>>
Lists complications for the current face. Returns (id, name, description, enabled) tuples.
Sourcepub async fn list_complications_detailed(&self) -> Result<Vec<String>>
pub async fn list_complications_detailed(&self) -> Result<Vec<String>>
Lists complications with full details including options. Returns JSON-encoded complication data.
Sourcepub async fn get_enabled_complications(&self) -> Result<Vec<String>>
pub async fn get_enabled_complications(&self) -> Result<Vec<String>>
Gets enabled complications for the current face.
Sourcepub async fn enable_complication(&self, complication_id: &str) -> Result<()>
pub async fn enable_complication(&self, complication_id: &str) -> Result<()>
Enables a complication for the current face.
Sourcepub async fn disable_complication(&self, complication_id: &str) -> Result<()>
pub async fn disable_complication(&self, complication_id: &str) -> Result<()>
Disables a complication for the current face.