[−][src]Struct virt::interface::Interface
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]
conn: &Connect,
xml: &str,
flags: u32
) -> Result<Interface, Error>
pub fn lookup_by_mac_string(
conn: &Connect,
id: &str
) -> Result<Interface, Error>
[src]
conn: &Connect,
id: &str
) -> Result<Interface, Error>
pub fn lookup_by_uuid_string(
conn: &Connect,
uuid: &str
) -> Result<Interface, Error>
[src]
conn: &Connect,
uuid: &str
) -> Result<Interface, Error>
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
Auto Trait Implementations
impl Unpin for Interface
impl !Send for Interface
impl !Sync for Interface
impl UnwindSafe for Interface
impl RefUnwindSafe for Interface
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,