Can get domains screenshots
This commit is contained in:
@ -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?
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user