Expand description
Extensions for the fuchsia.net.interfaces FIDL library.
Modules§
- Extensions for fuchsia.net.interfaces.admin.
Structs§
- An address and its properties.
- Helper struct implementing Address validation.
- Properties of a network interface.
- The properties and state for an interface.
- An error returned when
fhardware_network::PortClass
is an unknown variant. - An error returned when
fnet_interfaces::PortClass
is an unknown variant. - An error indicated an unexpected zero value.
Enums§
- Missing fields in
Address
. - Errors validating
Address
. - The kind of addresses included from the watcher.
- The local state of an interface’s properties.
- Like
fnet_interfaces::PortClass
, with the innerdevice
flattened. - Missing fields in
Properties
. - Errors validating
Properties
. - An Error returned when converting from
fnet_interfaces::PortClass
toPortClass
. - Interface watcher event update errors.
- The result of updating network interface state with an event.
- Interface watcher creation errors.
- Interface watcher operational errors.
Traits§
- A type that may fallibly convert from a u64 because the value is 0.
- A trait for types holding interface state that can be updated by change events.
Functions§
- Initialize a watcher with interest in all fields and return its events as a stream.
- Read Existing interface events from
stream
, updatinginit
until the Idle event is detected, returning the resulting state. - Returns true iff the supplied
Properties
(expected to be fully populated) appears to provide network connectivity, i.e. is not loopback, is online, and has a default route and a globally routable address for either IPv4 or IPv6. An IPv4 address is assumed to be globally routable if it’s not link-local. An IPv6 address is assumed to be globally routable if it has global scope. - Wraps
event_stream
and returns a stream which yields the reachability status as a bool (true iff there exists an interface with properties that satisfyis_globally_routable
) whenever it changes. The first item the returned stream yields is the reachability status of the first interface discovered through anAdded
orExisting
event onevent_stream
. - Returns a future which resolves when any network interface observed through
event_stream
has properties which satisfyis_globally_routable
. - Wait for a condition on interface state to be satisfied.
- Wait for a condition on a specific interface to be satisfied.