Crate fidl_fuchsia_net_filter_ext

Source
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§

sync

Structs§

AddressMatcher
Extension type for fnet_filter::AddressMatcher.
AddressRange
Extension type for fnet_filter::AddressRange.
Controller
A controller for filtering state.
ControllerId
Extension type for fnet_filter::ControllerId.
InstalledIpRoutine
Extension type for fnet_filter::InstalledIpRoutine.
InstalledNatRoutine
Extension type for fnet_filter::InstalledNatRoutine.
Matchers
Extension type for fnet_filter::Matchers.
Namespace
Extension type for fnet_filter::Namespace.
NamespaceId
Extension type for fnet_filter::NamespaceId.
PortMatcher
Extension type for fnet_filter::PortMatcher.
PortRange
Routine
Extension type for fnet_filter::Routine.
RoutineId
Extension type for fnet_filter::RoutineId.
Rule
Extension type for fnet_filter::Rule.
RuleId
Extension type for fnet_filter::RuleId.
Subnet
Extension type for the Subnet variant of fnet_filter::AddressMatcherType.

Enums§

Action
Extension type for fnet_filter::Action.
AddressMatcherType
Extension type for fnet_filter::AddressMatcherType.
Change
Extension type for fnet_filter::Change.
ChangeCommitError
Errors for individual changes committed.
ChangeValidationError
Errors for individual changes pushed.
CommitError
Errors for the NamespaceController.Commit method.
ControllerCreationError
Namespace controller creation errors.
Domain
Extension type for fnet_filter::Domain.
Event
Extension type for fnet_filter::Event.
FidlConversionError
Conversion errors from fnet_filter FIDL types to the equivalents defined in this module.
GetExistingResourcesError
Errors returned by get_existing_resources.
InterfaceMatcher
Extension type for fnet_filter::InterfaceMatcher.
IpHook
Extension type for fnet_filter::IpInstallationHook.
NatHook
Extension type for fnet_filter::NatInstallationHook.
PortMatcherError
Errors when creating a PortMatcher.
PushChangesError
Errors for the NamespaceController.PushChanges method.
Resource
Extension type for fnet_filter::Resource.
ResourceId
Extension type for fnet_filter::ResourceId.
RoutineType
Extension type for fnet_filter::RoutineType.
TransparentProxy
Extension type for fnet_filter::TransparentProxy_.
TransportProtocolMatcher
Extension type for fnet_filter::TransportProtocol.
WaitForConditionError
Errors returned by wait_for_condition.
WatchError
Filter watcher Watch errors.
WatcherCreationError
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 the idle event is observed.
wait_for_condition
Wait for a condition on filtering state to be satisfied.