class SpecifiedMetric
Defined at line 642 of file fidling/gen/sdk/fidl/fuchsia.net.routes/fuchsia.net.routes/cpp/fidl/fuchsia.net.routes/cpp/natural_types.h
Public Methods
void SpecifiedMetric (SpecifiedMetric && other)
SpecifiedMetric & operator= (SpecifiedMetric && other)
void SpecifiedMetric (const SpecifiedMetric & other)
SpecifiedMetric & operator= (const SpecifiedMetric & other)
bool operator== (const SpecifiedMetric & other)
bool operator!= (const SpecifiedMetric & other)
::fuchsia_net_routes::SpecifiedMetric::Tag Which ()
SpecifiedMetric WithExplicitMetric (uint32_t val)
const ::fidl::internal::UnionMemberView<1, Storage_> explicit_metric ()
::fidl::internal::UnionMemberView<1, Storage_> explicit_metric ()
SpecifiedMetric & explicit_metric (uint32_t value)
The route's metric will be this explicitly specified value.
SpecifiedMetric WithInheritedFromInterface (::fuchsia_net_routes::Empty val)
const ::fidl::internal::UnionMemberView<2, Storage_> inherited_from_interface ()
::fidl::internal::UnionMemberView<2, Storage_> inherited_from_interface ()
SpecifiedMetric & inherited_from_interface (::fuchsia_net_routes::Empty value)
The route's metric is inherited from its outbound interface, and
will track this value as it changes throughout the route's lifetime.
Clients may prefer this approach if they wish to offload the
responsibility of "which route is best" to the system.
void SpecifiedMetric (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Enumerations
enum Tag
| Name | Value |
|---|---|
| kExplicitMetric | 1 |
| kInheritedFromInterface | 2 |
TODO: share union tag types between wire
&
natural.
Defined at line 652 of file fidling/gen/sdk/fidl/fuchsia.net.routes/fuchsia.net.routes/cpp/fidl/fuchsia.net.routes/cpp/natural_types.h
Friends
class NaturalUnionCodingTraits