pub async fn send_request(req: &Request) -> Result<Response, IpcError>Expand description
Send a request to the aethermap daemon
This function connects to the daemon socket at /run/aethermap.sock, serializes the request using bincode, sends it with a length prefix, and returns the deserialized response.
§Arguments
req- The request to send to the daemon
§Returns
Returns the Response from the daemon or an IpcError if something went wrong.