Crate objc2_network_extension

Source
Expand description

§Bindings to the NetworkExtension framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

NEAppProxyFlow
The NEAppProxyFlow class is an abstract base class that declares the programmatic interface for a flow of network data.
NEAppProxyFlowError
Flow error codes
NEAppProxyProvider
The NEAppProxyProvider class declares the programmatic interface for an object that implements the client side of a custom network proxy solution.
NEAppProxyProviderManager
The NEAppProxyProviderManager class declares the programmatic interface for an object that is used to configure and control network tunnels provided by NEAppProxyProviders.
NEAppProxyTCPFlow
The NEAppProxyTCPFlow class declares the programmatic interface of an object that is used by NEAppProxyProvider implementations to proxy the payload of TCP connections.
NEAppProxyUDPFlow
The NEAppProxyUDPFlow class declares the programmatic interface of an object that is used by NEAppProxyProvider implementations to proxy the payload of UDP datagrams.
NEAppPushManager
The NEAppPushManager class declares a programmatic interface to configure NEAppPushProvider.
NEAppPushManagerError
App Push Manager error codes
NEAppPushProvider
The NEAppPushProvider class declares a programmatic interface to manage a life cycle of app push provider. It also allows the provider to handle outgoing communication message from the containing app, and pass incoming call message to the containing app. NEAppPushProvider is part of NetworkExtension.framework
NEAppRule
The NEAppRule class declares the programmatic interface for an object that contains the match conditions for a rule that is used to match network traffic originated by applications.
NEDNSOverHTTPSSettings
Apple’s documentation
NEDNSOverTLSSettings
Apple’s documentation
NEDNSProtocol
DNS protocol variants
NEDNSProxyManager
The NEDNSProxyManager class declares the programmatic interface for an object that manages DNS proxy configurations.
NEDNSProxyManagerError
DNS proxy error codes
NEDNSProxyProvider
The NEDNSProxyProvider class declares the programmatic interface for an object that implements the client side of a custom DNS proxy solution.
NEDNSProxyProviderProtocol
The NEDNSProxyProviderProtocol class declares the programmatic interface for an object that contains NEDNSProxyProvider-specific configuration settings.
NEDNSSettings
The NEDNSSettings class declares the programmatic interface for an object that contains DNS settings.
NEDNSSettingsManager
The NEDNSSettingsManager class declares the programmatic interface for an object that manages DNS settings configurations.
NEDNSSettingsManagerError
DNS Settings Manager error codes
NEEthernetTunnelNetworkSettings
The NEEthernetTunnelNetworkSettings class declares the programmatic interface for an object that contains network settings.
NEEthernetTunnelProvider
The NEEthernetTunnelProvider class declares the programmatic interface of an object that implements the client side of a custom link-layer packet tunneling protocol.
NEEvaluateConnectionRule
The NEEvaluateConnectionRule class declares the programmatic interface for an object that associates properties of network connections with an action.
NEEvaluateConnectionRuleAction
Evaluate Connection rule actions
NEFilterAction
A NEFilterAction represents the possible actions taken upon a NEFilterFlow that can be reported by the data provider extension to the control provider extension.
NEFilterBrowserFlow
The NEFilterBrowserFlow class declares the programmatic interface of an object that represents a flow of network data to be filtered, which is originated from NEFilterSource.
NEFilterControlProvider
The NEFilterControlProvider class declares the programmatic interface for an object that is responsible for installing filtering rules on the device.
NEFilterControlVerdict
The NEFilterControlVerdict declares the programmatic interface of an object that is the verdict for a new flow of network data by the control provider.
NEFilterDataAttribute
Attribute flags describing data
NEFilterDataProvider
The NEFilterDataProvider class declares the programmatic interface for an object that evaluates network data flows based on a set of locally-available rules and makes decisions about whether to block or allow the flows.
NEFilterDataVerdict
The NEFilterDataVerdict class declares the programmatic interface of an object that is the verdict for a flow of network data after some of the data has been seen by the filter.
NEFilterFlow
The NEFilterFlow class declares the programmatic interface of an object that represents a flow of network data to be filtered.
NEFilterManager
The NEFilterManager class declares the programmatic interface for an object that manages content filtering configurations.
NEFilterManagerError
Filter error codes
NEFilterManagerGrade
Filter grade
NEFilterNewFlowVerdict
The NEFilterNewFlowVerdict declares the programmatic interface of an object that is the verdict for a new flow of network data before any of the flow’s data has been seen by the filter.
NEFilterPacketContext
The NEFilterPacketContext class identifies the current filtering context.
NEFilterPacketProvider
The NEFilterPacketProvider class declares the programmatic interface for an object that evaluates network packets decisions about whether to block, allow, or delay the packets.
NEFilterPacketProviderVerdict
Verdict for a packet
NEFilterProvider
The NEFilterProvider class is an abstract base class that declares the programmatic interface of an object that implements a socket filter.
NEFilterProviderConfiguration
The NEFilterProviderConfiguration class declares the programmatic interface of an object that configures a plugin-based content filter.
NEFilterRemediationVerdict
The NEFilterRemediationVerdict class declares the programmatic interface of an object that is the verdict for a flow which has been blocked by the filter, but the user has made a request for remediation.
NEFilterReport
The NEFilterReport declares the programmatic interface of an object that is a report of actions taken by the data provider.
NEFilterReportEvent
A NEFilterReportEvent represents the event that is being reported by the NEFilterReport.
NEFilterReportFrequency
A NEFilterReportFrequency controls the frequency of periodic reports.
NEFilterRule
The NEFilterRule class declares the programmatic interface of an object that defines a rule for matching network traffic and the action to take when the rule matches.
NEFilterSettings
The NEFilterSettings class declares the programmatic interface for an object that contains filter settings.
NEFilterSocketFlow
The NEFilterSocketFlow class declares the programmatic interface of an object that represents a flow of network data to be filtered, which is originated from the socket.
NEFilterVerdict
The NEFilterVerdict class declares the programmatic interface for an object that is the verdict for a flow of network data.
NEFlowMetaData
The NEFlowMetaData class declares the programmatic interface for an object that contains extra information about a flow.
NEHotspotConfiguration
The NEHotspotConfiguration class represents set of properties that are required to configure a Wi-Fi Network.
NEHotspotConfigurationEAPTLSVersion
TLS version to use during TLS handshke.
NEHotspotConfigurationEAPType
EAP Type.
NEHotspotConfigurationError
Hotspot Configuration error codes
NEHotspotConfigurationManager
The NEHotspotConfigurationManager class allows an application to Add/Update/Remove Wi-Fi Network Configuraton.
NEHotspotConfigurationTTLSInnerAuthenticationType
TTLS Inner Authentication Type.
NEHotspotEAPSettings
NEHotspotEAPSettings class provides a set of properties that are required to configure a WPA/WPA2 Enterprise or Hotspot 2.0 Wi-Fi networks.
NEHotspotHS20Settings
NEHotspotHS20Settings class provides a set of properties that are required to discover and negotiate Hotspot 2.0 Wi-Fi networks.
NEHotspotHelper
The NEHotspotHelper class allows an application to register itself as a HotspotHelper.
NEHotspotHelperCommand
An NEHotspotHelperCommand object is provided to the helper’s command handler block. The HotspotHelper processes the command instantiates an NEHotspotHelperResponse object, sets the annotated network or networkList (Evaluate/FilterScanList only), then delivers it.
NEHotspotHelperCommandType
The type of the NEHotspotHelperCommand object.
NEHotspotHelperConfidence
The HotspotHelper’s confidence in its ability to handle the network.
NEHotspotHelperResponse
The HotspotHelper creates an NEHotspotHelperResponse object to provide the results of running the corresponding NEHotspotHelperCommand.
NEHotspotHelperResult
The result of processing the NEHotspotHelperCommand.
NEHotspotNetwork
The NEHotspotNetwork class provides a class method to get the SSID and BSSID of the current Wi-Fi network.
NEHotspotNetworkSecurityType
Wi-Fi network security type
NEIPv4Route
The NEIPv4Route class declares the programmatic interface for an object that contains settings for an IPv4 route.
NEIPv4Settings
The NEIPv4Settings class declares the programmatic interface for an object that contains IPv4 settings.
NEIPv6Route
The NEIPv6Route class declares the programmatic interface for an object that contains settings for an IPv6 route.
NEIPv6Settings
The NEIPv6Settings class declares the programmatic interface for an object that contains IPv6 settings.
NENetworkRule
The NENetworkRule class declares the programmatic interface of an object that contains a specification of a rule that matches the attributes of network traffic.
NENetworkRuleProtocol
IP protocols
NEOnDemandRule
The NEOnDemandRule class declares the programmatic interface for an object that defines an On Demand rule.
NEOnDemandRuleAction
On Demand rule actions
NEOnDemandRuleConnect
The NEOnDemandRuleConnect class declares the programmatic interface for an object that defines an On Demand rule with the “Connect” action.
NEOnDemandRuleDisconnect
The NEOnDemandRuleDisconnect class declares the programmatic interface for an object that defines an On Demand rule with the “Disconnect” action.
NEOnDemandRuleEvaluateConnection
The NEOnDemandRuleEvaluateConnection class declares the programmatic interface for an object that defines an On Demand rule with the “Evaluate Connection” action.
NEOnDemandRuleIgnore
The NEOnDemandRuleIgnore class declares the programmatic interface for an object that defines an On Demand rule with the “Ignore” action.
NEOnDemandRuleInterfaceType
On Demand rule network interface types
NEPacket
An NEPacket object represents the data, protocol family, and metadata associated with an IP packet. These packets are used to read and write on an NEPacketTunnelFlow.
NEPacketTunnelFlow
The NEPacketTunnelFlow class declares the programmatic interface of an object that is used by NEPacketTunnelProvider implementations to tunnel IP packets.
NEPacketTunnelNetworkSettings
The NEPacketTunnelNetworkSettings class declares the programmatic interface for an object that contains IP network settings.
NEPacketTunnelProvider
The NEPacketTunnelProvider class declares the programmatic interface of an object that implements the client side of a custom IP packet tunneling protocol.
NEPrivateLTENetwork
The NEPrivateLTENetwork class declares an object that contains the parameters of a private LTE network.
NEProvider
The NEProvider class declares the programmatic interface that is common for all Network Extension providers.
NEProviderStopReason
Provider stop reasons
NEProxyServer
The NEProxyServer class declares the programmatic interface for an object that contains settings for a proxy server.
NEProxySettings
The NEProxySettings class declares the programmatic interface for an object that contains proxy settings.
NERelay
The NERelay class declares the programmatic interface of an object that manages the details of a relay’s configuration, such as authentication and URL details.
NERelayManager
The NERelayManager class declares the programmatic interface for an object that manages relay configurations.
NERelayManagerClientError
NERelay Manager error codes detected by the client while trying to use this relay
NERelayManagerError
NERelay Manager error codes
NETrafficDirection
The direction of network traffic
NETransparentProxyManager
The NETransparentProxyManager class declares the programmatic interface for an object that is used to configure and control transparent proxies provided by NEAppProxyProviders.
NETransparentProxyNetworkSettings
The NETransparentProxyNetworkSettings class declares the programmatic interface for an object that contains network settings.
NETransparentProxyProvider
The NETransparentProxyProvider class declares the programmatic interface for an object that implements the client side of a custom transparent network proxy solution. The NETransparentProxyProvider class has the following behavior differences from its super class NEAppProxyProvider:
NETunnelNetworkSettings
The NETunnelNetworkSettings class declares the programmatic interface for an object that contains network settings.
NETunnelProvider
The NETunnelProvider class declares the programmatic interface for an object that provides a network tunnel service.
NETunnelProviderError
Tunnel Provider error codes
NETunnelProviderManager
The NETunnelProviderManager class declares the programmatic interface for an object that is used to configure and control network tunnels provided by NETunnelProviders.
NETunnelProviderProtocol
The NETunnelProviderProtocol class declares the programmatic interface for an object that contains NETunnelProvider-specific configuration settings.
NETunnelProviderRoutingMethod
Network traffic routing methods.
NETunnelProviderSession
This file declares the NETunnelProviderSession API. The NETunnelProviderSession API is used to control network tunnel services provided by NETunnelProvider implementations.
NEVPNConnection
The NEVPNConnection class declares the programmatic interface for an object that manages VPN connections.
NEVPNConnectionError
VPN error codes
NEVPNError
VPN error codes
NEVPNIKEAuthenticationMethod
Internet Key Exchange (IKE) authentication methods used to authenticate with the IPSec server.
NEVPNIKEv2CertificateType
IKEv2 Certificate types
NEVPNIKEv2DeadPeerDetectionRate
IKEv2 Dead Peer Detection Rates
NEVPNIKEv2DiffieHellmanGroup
IKEv2 Diffie Hellman groups
NEVPNIKEv2EncryptionAlgorithm
IKEv2 Encryption Algorithms
NEVPNIKEv2IntegrityAlgorithm
IKEv2 Integrity Algorithms
NEVPNIKEv2PPKConfiguration
The NEVPNIKEv2PPKConfiguration class declares the programmatic interface of an object that manages parameters for a Post-quantum Pre-shared Key (PPK)
NEVPNIKEv2SecurityAssociationParameters
The NEVPNIKEv2SecurityAssociationParameters class declares the programmatic interface of an object that manages parameters for an IPSec Security Association
NEVPNIKEv2TLSVersion
TLS Versions for use in EAP-TLS
NEVPNManager
The NEVPNManager class declares the programmatic interface for an object that manages Virtual Private Network (VPN) configurations.
NEVPNProtocol
The NEVPNProtocol class declares the programmatic interface of an object that manages the protocol-specific portion of a VPN configuration.
NEVPNProtocolIKEv2
The NEVPNProtocolIKEv2 class declares the programmatic interface of an object that manages the IKEv2-specific portion of a VPN configuration.
NEVPNProtocolIPSec
The NEVPNProtocolIPSec class declares the programmatic interface of an object that manages the IPSec-specific portion of a VPN configuration.
NEVPNStatus
VPN status codes
NWBonjourServiceEndpointDeprecated
NWBonjourServiceEndpoint is a subclass of NWEndpoint. It represents an endpoint backed by a Bonjour service, specified with a name, type, and domain. For example, the Bonjour service MyMusicStudio._music._tcp.local. has the name “MyMusicStudio”, the type “_music._tcp”, and the domain “local”.
NWEndpointDeprecated
NWEndpoint is a generic class to represent network endpoints, such as a port on a remote server.
NWHostEndpointDeprecated
NWHostEndpoint is a subclass of NWEndpoint. It represents an endpoint backed by a hostname and port. Note that a hostname string may be an IP or IPv6 address.
NWPathDeprecated
A network path, represented with NWPath, expresses the viability status and properties of the path that a networking connection will take on the device. For example, if the path status is NWPathStatusSatisfied, then a connection could use that path.
NWPathStatusDeprecated
Path status values
NWTCPConnectionDeprecated
Establish TCP connections to an endpoint, and send and receive data on the TCP connection.
NWTCPConnectionStateDeprecated
Defined connection states. New types may be defined in the future.
NWTLSParametersDeprecated
DEPRECATION NOTICE
NWUDPSessionDeprecated
Open UDP datagram sessions to an endpoint, and send and receive datagrams.
NWUDPSessionStateDeprecated
UDP session state values

Statics§

NEAppProxyErrorDomain
Apple’s documentation
NEAppPushErrorDomain
Apple’s documentation
NEDNSProxyConfigurationDidChangeNotification
Apple’s documentation
NEDNSProxyErrorDomain
Apple’s documentation
NEDNSSettingsConfigurationDidChangeNotification
Apple’s documentation
NEDNSSettingsErrorDomain
Apple’s documentation
NEFilterConfigurationDidChangeNotification
Apple’s documentation
NEFilterErrorDomain
Apple’s documentation
NEHotspotConfigurationErrorDomain
Apple’s documentation
NERelayClientErrorDomain
Apple’s documentation
NERelayConfigurationDidChangeNotification
Apple’s documentation
NERelayErrorDomain
Apple’s documentation
NETunnelProviderErrorDomain
Apple’s documentation
NEVPNConfigurationChangeNotification
Apple’s documentation
NEVPNConnectionErrorDomain
Apple’s documentation
NEVPNConnectionStartOptionPassword
Apple’s documentation
NEVPNConnectionStartOptionUsername
Apple’s documentation
NEVPNErrorDomain
Apple’s documentation
NEVPNStatusDidChangeNotification
Apple’s documentation

Traits§

NEAppPushDelegate
Delegate for NEAppPushManager.
NSMutableURLRequestNEHotspotHelper
Category “NEHotspotHelper” on NSMutableURLRequest. Extend NSMutableURLRequest to include a method to bind the request to the network interface associated with the specified NEHotspotHelperCommand object.
NWTCPConnectionAuthenticationDelegateDeprecated
Allows the caller to take custom actions on some connection events.

Type Aliases§

NEHotspotHelperHandlerblock2
The type definition for the HotspotHelper’s command handler block.