pub struct NetworkInterface { /* private fields */ }Implementations§
Source§impl NetworkInterface
impl NetworkInterface
pub fn type_id() -> u64
pub fn ipv4() -> Result<Self>
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 media_options(&self, filter: bool) -> NetworkInterfaceMediaOptions
pub fn media_subtypes(available: &PropertyList) -> Vec<String>
pub fn media_subtype_options( available: &PropertyList, subtype: &str, ) -> Result<Vec<Vec<String>>>
pub fn mtu_info(&self) -> Result<Option<NetworkInterfaceMtuInfo>>
pub fn set_configuration(&self, config: Option<&PropertyList>) -> Result<()>
pub fn set_extended_configuration( &self, extended_type: &str, config: Option<&PropertyList>, ) -> Result<()>
pub fn set_media_options<S: AsRef<str>>( &self, subtype: Option<&str>, options: &[S], ) -> Result<()>
pub fn set_mtu(&self, mtu: i32) -> Result<()>
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