INNER CODE UNIT · Rust
ping
ilya-zlobintsev/LACT · lact-client/src/lib.rs:139
pub async fn ping(&self) -> anyhow::Result<Pong> {
self.make_request(Request::Ping).await
}
pub async fn list_devices(&self) -> anyhow::Result<Vec<DeviceListEntry>> {
self.make_request(Request::ListDevices).await
}
pub async fn get_device_info(
&self,
id: &str,
include_api_info: Option<bool>,
) -> anyhow::Result<DeviceInfo> {
self.make_request(Request::DeviceInfo {
id,
include_api_info,
})
.await