pub struct NetworkInterface { /* private fields */ }Expand description
Re-exports the corresponding SystemConfiguration wrappers.
Wraps SCNetworkInterfaceRef.
Implementations§
Source§impl NetworkInterface
impl NetworkInterface
Sourcepub fn supported_interface_types(&self) -> Vec<String>
pub fn supported_interface_types(&self) -> Vec<String>
Wraps SCNetworkInterfaceCopySupportedInterfaceTypes.
Sourcepub fn supported_protocol_types(&self) -> Vec<String>
pub fn supported_protocol_types(&self) -> Vec<String>
Wraps SCNetworkInterfaceCopySupportedProtocolTypes.
Sourcepub fn create_layered_interface(
&self,
interface_type: &str,
) -> Result<Option<Self>>
pub fn create_layered_interface( &self, interface_type: &str, ) -> Result<Option<Self>>
Wraps SCNetworkInterfaceCreateWithInterface.
Sourcepub fn configuration(&self) -> Option<PropertyList>
pub fn configuration(&self) -> Option<PropertyList>
Wraps SCNetworkInterfaceCopyConfiguration.
Sourcepub fn extended_configuration(
&self,
extended_type: &str,
) -> Result<Option<PropertyList>>
pub fn extended_configuration( &self, extended_type: &str, ) -> Result<Option<PropertyList>>
Wraps SCNetworkInterfaceCopyExtendedConfiguration.
Sourcepub fn hardware_address_string(&self) -> Result<Option<String>>
pub fn hardware_address_string(&self) -> Result<Option<String>>
Wraps SCNetworkInterfaceCopyHardwareAddress.
Sourcepub fn underlying_interface(&self) -> Option<Self>
pub fn underlying_interface(&self) -> Option<Self>
Wraps SCNetworkInterfaceCopyUnderlyingInterface.
Sourcepub fn interface_type(&self) -> Result<Option<String>>
pub fn interface_type(&self) -> Result<Option<String>>
Wraps SCNetworkInterfaceCopyInterfaceType.
Sourcepub fn localized_display_name(&self) -> Result<Option<String>>
pub fn localized_display_name(&self) -> Result<Option<String>>
Wraps SCNetworkInterfaceCopyLocalizedDisplayName.
Sourcepub fn media_options(&self, filter: bool) -> NetworkInterfaceMediaOptions
pub fn media_options(&self, filter: bool) -> NetworkInterfaceMediaOptions
Wraps SCNetworkInterfaceCopyMediaOptionsCurrent.
Sourcepub fn media_subtypes(available: &PropertyList) -> Vec<String>
pub fn media_subtypes(available: &PropertyList) -> Vec<String>
Wraps SCNetworkInterfaceCopyMediaSubtypes.
Sourcepub fn media_subtype_options(
available: &PropertyList,
subtype: &str,
) -> Result<Vec<Vec<String>>>
pub fn media_subtype_options( available: &PropertyList, subtype: &str, ) -> Result<Vec<Vec<String>>>
Wraps SCNetworkInterfaceCopyMediaSubtypeOptions.
Sourcepub fn mtu_info(&self) -> Result<Option<NetworkInterfaceMtuInfo>>
pub fn mtu_info(&self) -> Result<Option<NetworkInterfaceMtuInfo>>
Wraps SCNetworkInterfaceCopyMTUInfo.
Sourcepub fn set_configuration(&self, config: Option<&PropertyList>) -> Result<()>
pub fn set_configuration(&self, config: Option<&PropertyList>) -> Result<()>
Wraps SCNetworkInterfaceSetConfiguration.
Sourcepub fn set_extended_configuration(
&self,
extended_type: &str,
config: Option<&PropertyList>,
) -> Result<()>
pub fn set_extended_configuration( &self, extended_type: &str, config: Option<&PropertyList>, ) -> Result<()>
Wraps SCNetworkInterfaceSetExtendedConfiguration.
Sourcepub fn set_media_options<S: AsRef<str>>(
&self,
subtype: Option<&str>,
options: &[S],
) -> Result<()>
pub fn set_media_options<S: AsRef<str>>( &self, subtype: Option<&str>, options: &[S], ) -> Result<()>
Wraps SCNetworkInterfaceSetMediaOptions.
Sourcepub fn force_configuration_refresh(&self) -> Result<()>
pub fn force_configuration_refresh(&self) -> Result<()>
Wraps SCNetworkInterfaceForceConfigurationRefresh.
Trait Implementations§
Source§impl Clone for NetworkInterface
impl Clone for NetworkInterface
Source§fn clone(&self) -> NetworkInterface
fn clone(&self) -> NetworkInterface
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more