class PortClass
Defined at line 334 of file fidling/gen/sdk/fidl/fuchsia.net.interfaces/fuchsia.net.interfaces/cpp/fidl/fuchsia.net.interfaces/cpp/natural_types.h
The port class of an interface.
Public Methods
void PortClass (PortClass && other)
PortClass & operator= (PortClass && other)
void PortClass (const PortClass & other)
PortClass & operator= (const PortClass & other)
bool operator== (const PortClass & other)
bool operator!= (const PortClass & other)
bool IsUnknown ()
::fuchsia_net_interfaces::PortClass::Tag Which ()
PortClass WithLoopback (::fuchsia_net_interfaces::Empty val)
const ::fidl::internal::UnionMemberView<1, Storage_> loopback ()
::fidl::internal::UnionMemberView<1, Storage_> loopback ()
PortClass & loopback (::fuchsia_net_interfaces::Empty value)
The interface is loopback.
PortClass WithDevice (::fuchsia_hardware_network::PortClass val)
const ::fidl::internal::UnionMemberView<2, Storage_> device ()
::fidl::internal::UnionMemberView<2, Storage_> device ()
PortClass & device (::fuchsia_hardware_network::PortClass value)
The interface's network device port class.
PortClass WithBlackhole (::fuchsia_net_interfaces::Empty val)
const ::fidl::internal::UnionMemberView<3, Storage_> blackhole ()
::fidl::internal::UnionMemberView<3, Storage_> blackhole ()
PortClass & blackhole (::fuchsia_net_interfaces::Empty value)
The interface is a blackhole interface.
void PortClass (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Enumerations
enum Tag
| Name | Value |
|---|---|
| kLoopback | 1 |
| kDevice | 2 |
| kBlackhole | 3 |
| _do_not_handle_this__write_a_default_case_instead | ::std::numeric_limits<::fidl_union_tag_t>::max() |
TODO: share union tag types between wire
&
natural.
Defined at line 342 of file fidling/gen/sdk/fidl/fuchsia.net.interfaces/fuchsia.net.interfaces/cpp/fidl/fuchsia.net.interfaces/cpp/natural_types.h
Friends
class NaturalUnionCodingTraits