Can get domains screenshots

This commit is contained in:
2023-10-13 15:27:01 +02:00
parent 4c29184a3b
commit 0a00e43216
6 changed files with 329 additions and 35 deletions

View File

@ -67,4 +67,9 @@ impl LibVirtClient {
pub async fn resume_domain(&self, id: DomainXMLUuid) -> anyhow::Result<()> {
self.0.send(libvirt_actor::ResumeDomainReq(id)).await?
}
/// Take a screenshot of the domain
pub async fn screenshot_domain(&self, id: DomainXMLUuid) -> anyhow::Result<Vec<u8>> {
self.0.send(libvirt_actor::ScreenshotDomainReq(id)).await?
}
}