[][src]Struct virt::interface::Interface

pub struct Interface { /* fields omitted */ }

Provides APIs for the management of interfaces.

See http://libvirt.org/html/libvirt-libvirt-interface.html

Methods

impl Interface[src]

pub fn new(ptr: virInterfacePtr) -> Interface[src]

pub fn as_ptr(&self) -> virInterfacePtr[src]

pub fn get_connect(&self) -> Result<Connect, Error>[src]

pub fn lookup_by_id(conn: &Connect, id: u32) -> Result<Interface, Error>[src]

pub fn lookup_by_name(conn: &Connect, id: &str) -> Result<Interface, Error>[src]

pub fn define_xml(
    conn: &Connect,
    xml: &str,
    flags: u32
) -> Result<Interface, Error>
[src]

pub fn lookup_by_mac_string(
    conn: &Connect,
    id: &str
) -> Result<Interface, Error>
[src]

pub fn lookup_by_uuid_string(
    conn: &Connect,
    uuid: &str
) -> Result<Interface, Error>
[src]

pub fn get_name(&self) -> Result<String, Error>[src]

pub fn get_mac_string(&self) -> Result<String, Error>[src]

pub fn get_xml_desc(&self, flags: InterfaceXMLFlags) -> Result<String, Error>[src]

pub fn create(&self, flags: InterfaceXMLFlags) -> Result<u32, Error>[src]

pub fn destroy(&self) -> Result<(), Error>[src]

pub fn undefine(&self) -> Result<(), Error>[src]

pub fn free(&mut self) -> Result<(), Error>[src]

pub fn is_active(&self) -> Result<bool, Error>[src]

Trait Implementations

impl Drop for Interface[src]

impl Debug for Interface[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]