class Use

Defined at line 8513 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h

Declares a capability used by a component, which was offered to it.

Public Methods

void Use (Use && other)
Use & operator= (Use && other)
void Use (const Use & other)
Use & operator= (const Use & other)
bool operator== (const Use & other)
bool operator!= (const Use & other)
bool IsUnknown ()
::fuchsia_component_decl::Use::Tag Which ()
Use WithService (::fuchsia_component_decl::UseService val)
const ::fidl::internal::UnionMemberView<1, Storage_> service ()
::fidl::internal::UnionMemberView<1, Storage_> service ()
Use & service (::fuchsia_component_decl::UseService value)

Sets the union to hold the service member.

Use WithProtocol (::fuchsia_component_decl::UseProtocol val)
const ::fidl::internal::UnionMemberView<2, Storage_> protocol ()
::fidl::internal::UnionMemberView<2, Storage_> protocol ()
Use & protocol (::fuchsia_component_decl::UseProtocol value)

Sets the union to hold the protocol member.

Use WithDirectory (::fuchsia_component_decl::UseDirectory val)
const ::fidl::internal::UnionMemberView<3, Storage_> directory ()
::fidl::internal::UnionMemberView<3, Storage_> directory ()
Use & directory (::fuchsia_component_decl::UseDirectory value)

Sets the union to hold the directory member.

Use WithStorage (::fuchsia_component_decl::UseStorage val)
const ::fidl::internal::UnionMemberView<4, Storage_> storage ()
::fidl::internal::UnionMemberView<4, Storage_> storage ()
Use & storage (::fuchsia_component_decl::UseStorage value)

Sets the union to hold the storage member.

Use WithEventStream (::fuchsia_component_decl::UseEventStream val)
const ::fidl::internal::UnionMemberView<5, Storage_> event_stream ()
::fidl::internal::UnionMemberView<5, Storage_> event_stream ()
Use & event_stream (::fuchsia_component_decl::UseEventStream value)

Sets the union to hold the event_stream member.

Use WithRunner (::fuchsia_component_decl::UseRunner val)
const ::fidl::internal::UnionMemberView<6, Storage_> runner ()
::fidl::internal::UnionMemberView<6, Storage_> runner ()
Use & runner (::fuchsia_component_decl::UseRunner value)

Sets the union to hold the runner member.

Use WithConfig (::fuchsia_component_decl::UseConfiguration val)
const ::fidl::internal::UnionMemberView<7, Storage_> config ()
::fidl::internal::UnionMemberView<7, Storage_> config ()
Use & config (::fuchsia_component_decl::UseConfiguration value)

Sets the union to hold the config member.

Use WithDictionary (::fuchsia_component_decl::UseDictionary val)
const ::fidl::internal::UnionMemberView<8, Storage_> dictionary ()
::fidl::internal::UnionMemberView<8, Storage_> dictionary ()
Use & dictionary (::fuchsia_component_decl::UseDictionary value)

Sets the union to hold the dictionary member.

void Use (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Enumerations

enum Tag
Name Value
kService 1
kProtocol 2
kDirectory 3
kStorage 4
kEventStream 7
kRunner 8
kConfig 9
kDictionary 10
_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 8529 of file fidling/gen/sdk/fidl/fuchsia.component.decl/fuchsia.component.decl/cpp/fidl/fuchsia.component.decl/cpp/natural_types.h

Friends

class NaturalUnionCodingTraits