pub struct NetworkInterface { /* private fields */ }Implementations§
Source§impl NetworkInterface
impl NetworkInterface
pub fn supported_interface_types(&self) -> Vec<String>
pub fn supported_protocol_types(&self) -> Vec<String>
pub fn create_layered_interface( &self, interface_type: &str, ) -> Result<Option<Self>>
pub fn configuration(&self) -> Option<PropertyList>
pub fn extended_configuration( &self, extended_type: &str, ) -> Result<Option<PropertyList>>
pub fn hardware_address_string(&self) -> Result<Option<String>>
pub fn underlying_interface(&self) -> Option<Self>
Sourcepub fn interface_type(&self) -> Result<Option<String>>
pub fn interface_type(&self) -> Result<Option<String>>
Sourcepub fn localized_display_name(&self) -> Result<Option<String>>
pub fn localized_display_name(&self) -> Result<Option<String>>
pub fn mtu_info(&self) -> Result<Option<NetworkInterfaceMtuInfo>>
pub fn force_configuration_refresh(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for NetworkInterface
impl Clone for NetworkInterface
Source§fn clone(&self) -> NetworkInterface
fn clone(&self) -> NetworkInterface
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NetworkInterface
impl RefUnwindSafe for NetworkInterface
impl !Send for NetworkInterface
impl !Sync for NetworkInterface
impl Unpin for NetworkInterface
impl UnsafeUnpin for NetworkInterface
impl UnwindSafe for NetworkInterface
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