Struct Libvirt

Source
pub struct Libvirt<Io: Read + Write> { /* private fields */ }

Implementations§

Source§

impl<Io> Libvirt<Io>
where Io: Read + Write,

Source

pub fn new(stream: Io) -> Self

Source

pub fn auth(&mut self) -> Result<AuthListResponse, LibvirtError>

Source

pub fn open(&mut self) -> Result<ConnectOpenResponse, LibvirtError>

Source

pub fn version(&mut self) -> Result<(u32, u32, u32), LibvirtError>

Source

pub fn list_defined_domains(&mut self) -> Result<Vec<String>, LibvirtError>

Source

pub fn define(&mut self, xml: &str) -> Result<Domain, LibvirtError>

Source

pub fn undefine( &mut self, dom: Domain, ) -> Result<DomainUndefineResponse, LibvirtError>

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.