pub struct Interface { /* private fields */ }
Expand description
Provides APIs for the management of interfaces.
See http://libvirt.org/html/libvirt-libvirt-interface.html
Implementations§
source§impl Interface
impl Interface
pub fn new(ptr: virInterfacePtr) -> Interface
pub fn as_ptr(&self) -> virInterfacePtr
pub fn get_connect(&self) -> Result<Connect, Error>
pub fn lookup_by_name(conn: &Connect, id: &str) -> Result<Interface, Error>
pub fn define_xml( conn: &Connect, xml: &str, flags: u32 ) -> Result<Interface, Error>
pub fn lookup_by_mac_string( conn: &Connect, id: &str ) -> Result<Interface, Error>
pub fn get_name(&self) -> Result<String, Error>
pub fn get_mac_string(&self) -> Result<String, Error>
pub fn get_xml_desc(&self, flags: virInterfaceXMLFlags) -> Result<String, Error>
pub fn create(&self, flags: virInterfaceXMLFlags) -> Result<u32, Error>
pub fn destroy(&self, flags: u32) -> Result<(), Error>
pub fn undefine(&self) -> Result<(), Error>
pub fn free(&mut self) -> Result<(), Error>
pub fn is_active(&self) -> Result<bool, Error>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Interface
impl !Send for Interface
impl !Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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