pub struct Libvirt<Io: Read + Write> { /* private fields */ }
Implementations§
Source§impl<Io> Libvirt<Io>
impl<Io> Libvirt<Io>
pub fn new(stream: Io) -> Self
pub fn auth(&mut self) -> Result<AuthListResponse, LibvirtError>
pub fn open(&mut self) -> Result<ConnectOpenResponse, LibvirtError>
pub fn version(&mut self) -> Result<(u32, u32, u32), LibvirtError>
pub fn list_defined_domains(&mut self) -> Result<Vec<String>, LibvirtError>
pub fn define(&mut self, xml: &str) -> Result<Domain, LibvirtError>
pub fn undefine( &mut self, dom: Domain, ) -> Result<DomainUndefineResponse, LibvirtError>
pub fn start(&mut self, dom: Domain) -> Result<Domain, LibvirtError>
Auto Trait Implementations§
impl<Io> Freeze for Libvirt<Io>where
Io: Freeze,
impl<Io> RefUnwindSafe for Libvirt<Io>where
Io: RefUnwindSafe,
impl<Io> Send for Libvirt<Io>where
Io: Send,
impl<Io> Sync for Libvirt<Io>where
Io: Sync,
impl<Io> Unpin for Libvirt<Io>where
Io: Unpin,
impl<Io> UnwindSafe for Libvirt<Io>where
Io: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more