Expand description
Extensions for the fuchsia.net.routes FIDL library.
The fuchsia.net.routes API has separate V4 and V6 watcher variants to
enforce maximum type safety and access control at the API layer. For the
most part, these APIs are a mirror image of one another. This library
provides an a single implementation that is generic over
net_types::ip::Ip
version, as well as conversion utilities.
Modules§
- admin
- Extensions for fuchsia.net.routes.admin.
- rules
- Extensions for route rules FIDL.
- testutil
- Test Utilities for the fuchsia.net.routes FIDL library.
Structs§
- Effective
Route Properties - The effective properties of a route. This type enforces that all required
fields from
fnet_routes::EffectiveRouteProperties
are set. - Installed
Route - An installed route, abstracting over
fnet_routes::InstalledRouteV4
andfnet_routes::InstalledRouteV6
. - Resolve
Options - Resolve options for resolving route.
- Route
- A route, abstracting over
fnet_routes::RouteV4
andfnet_routes::RouteV6
. - Route
Properties - The properties of a route, abstracting over
fnet_routes::RoutePropertiesV4
andfnet_routes::RoutePropertiesV6
. - Route
Target - A target of a route, abstracting over
fnet_routes::RouteTargetV4
andfnet_routes::RouteTargetV6
. - Specified
Route Properties - The specified properties of a route. This type enforces that all required
fields from
fnet_routes::SpecifiedRouteProperties
are set. - TableId
- A newtype representing the ID of a route table.
- Watcher
Options - Options for getting a route watcher.
Enums§
- Collect
Routes Until Idle Error - Errors returned by
collect_routes_until_idle
. - Effective
Route Properties Required Fields - Event
- An event reported to the watcher, abstracting over
fnet_routes::EventV4
and fnet_routes::EventV6`. - Fidl
Conversion Error - Conversion errors from
fnet_routes
FIDL types to the generic equivalents defined in this module. - Installed
Route Required Fields - NetType
Conversion Error - Conversion errors from generic route types defined in this module to their FIDL equivalents.
- Never
Missing Fields - Route
Action - The action of a route, abstracting over
fnet_routes::RouteActionV4
andfnet_routes::RouteActionV6
. - Route
Properties Required Fields - Specified
Route Properties Required Fields - Required fields in
SpecifiedRouteProperties
. - Wait
ForRoutes Error - Errors returned by
wait_for_routes
. - Watch
Error - Route watcher
Watch
errors. - Watcher
Creation Error - Route watcher creation errors.
Traits§
- Fidl
Route IpExt - IP Extension for the
fuchsia.net.routes
FIDL API. - Responder
- Abstracts over AddRoute and RemoveRoute RouteSet method responders.
- Slice
Responder - A trait for responding with a slice of objects.
Functions§
- collect_
routes_ until_ idle - Collects all
existing
events from the stream, stopping once theidle
event is observed. - event_
stream_ from_ state event_stream_from_state_with_options
with defaultWatcherOptions
.- event_
stream_ from_ state_ with_ options - Connects to the watcher protocol with
WatcherOptions
and converts the Hanging-Get style API into an Event stream. - event_
stream_ from_ watcher - Turns the provided watcher client into a
Event
stream by applying Hanging-Get watch. - get_
watcher - Dispatches either
GetWatcherV4
orGetWatcherV6
on the state proxy. - wait_
for_ routes - Wait for a condition on routing state to be satisfied.
- wait_
for_ routes_ map - Wait for a condition on routing state to be satisfied, yielding a result from the predicate.
- watch
- Calls
Watch()
on the providedWatcherV4
orWatcherV6
proxy.