Can start a domain
This commit is contained in:
@ -37,4 +37,9 @@ impl LibVirtClient {
|
||||
pub async fn get_domain_state(&self, id: DomainXMLUuid) -> anyhow::Result<DomainState> {
|
||||
self.0.send(libvirt_actor::GetDomainStateReq(id)).await?
|
||||
}
|
||||
|
||||
/// Start a domain
|
||||
pub async fn start_domain(&self, id: DomainXMLUuid) -> anyhow::Result<()> {
|
||||
self.0.send(libvirt_actor::StartDomainReq(id)).await?
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user