Expand description
Extensions for the fuchsia.net.filter FIDL library.
Note that this library as written is not meant for inclusion in the SDK. It
is only meant to be used in conjunction with a netstack that is compiled
against the same API level of the fuchsia.net.filter
FIDL library. This
library opts in to compile-time and runtime breakage when the FIDL library
is evolved in order to enforce that it is updated along with the FIDL
library itself.
Modules§
Structs§
- Controller
- A controller for filtering state.
- Controller
Id - Extension type for [
fnet_filter::ControllerId
]. - Installed
IpRoutine - Extension type for [
fnet_filter::InstalledIpRoutine
]. - Installed
NatRoutine - Extension type for [
fnet_filter::InstalledNatRoutine
]. - Matchers
- Extension type for [
fnet_filter::Matchers
]. - Namespace
- Extension type for [
fnet_filter::Namespace
]. - Namespace
Id - Extension type for [
fnet_filter::NamespaceId
]. - Port
Range - Routine
- Extension type for [
fnet_filter::Routine
]. - Routine
Id - Extension type for [
fnet_filter::RoutineId
]. - Rule
- Extension type for [
fnet_filter::Rule
]. - RuleId
- Extension type for [
fnet_filter::RuleId
].
Enums§
- Action
- Extension type for [
fnet_filter::Action
]. - Change
- Extension type for [
fnet_filter::Change
]. - Change
Commit Error - Errors for individual changes committed.
- Change
Validation Error - Errors for individual changes pushed.
- Commit
Error - Errors for the NamespaceController.Commit method.
- Controller
Creation Error - Namespace controller creation errors.
- Domain
- Extension type for [
fnet_filter::Domain
]. - Event
- Extension type for [
fnet_filter::Event
]. - Fidl
Conversion Error - Conversion errors from
fnet_filter
FIDL types to the equivalents defined in this module. - GetExisting
Resources Error - Errors returned by
get_existing_resources
. - IpHook
- Extension type for [
fnet_filter::IpInstallationHook
]. - Mark
Action - NatHook
- Extension type for [
fnet_filter::NatInstallationHook
]. - Push
Changes Error - Errors for the NamespaceController.PushChanges method.
- Resource
- Extension type for [
fnet_filter::Resource
]. - Resource
Id - Extension type for [
fnet_filter::ResourceId
]. - Routine
Type - Extension type for [
fnet_filter::RoutineType
]. - Transparent
Proxy - Extension type for [
fnet_filter::TransparentProxy_
]. - Wait
ForCondition Error - Errors returned by
wait_for_condition
. - Watch
Error - Filter watcher
Watch
errors. - Watcher
Creation Error - Filter watcher creation errors.
Traits§
- Update
- A trait for types holding filtering state that can be updated by change events.
Functions§
- event_
stream_ from_ state - Connects to the watcher protocol and converts the Hanging-Get style API into an Event stream.
- get_
existing_ resources - Collects all
existing
events from the stream, stopping once theidle
event is observed. - wait_
for_ condition - Wait for a condition on filtering state to be satisfied.