class OfferDirectory

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

Declares a directory offered by a component to one of its children, which

may have been offered by the component's containing realm, the component

itself, or one of its other children.

Public Methods

void OfferDirectory (Storage_ storage)
void OfferDirectory ()

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

void OfferDirectory (OfferDirectory && )

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

void OfferDirectory (const OfferDirectory & other)
OfferDirectory & operator= (OfferDirectory && )

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

OfferDirectory & operator= (const OfferDirectory & other)
bool operator== (const OfferDirectory & other)
bool operator!= (const OfferDirectory & other)
bool IsEmpty ()
const std::optional< ::fuchsia_component_decl::Ref> & source ()

(Required) The provider of the capability relative to the component

itself. Must be `parent`, `self`, `child`, or `void`.

If set to `void`, then the target must offer or use the capability with

`OPTIONAL` or `TRANSITIONAL` availability.

::std::optional< ::fuchsia_component_decl::Ref> & source ()

(Required) The provider of the capability relative to the component

itself. Must be `parent`, `self`, `child`, or `void`.

If set to `void`, then the target must offer or use the capability with

`OPTIONAL` or `TRANSITIONAL` availability.

OfferDirectory & source (std::optional< ::fuchsia_component_decl::Ref> value)

(Required) The provider of the capability relative to the component

itself. Must be `parent`, `self`, `child`, or `void`.

If set to `void`, then the target must offer or use the capability with

`OPTIONAL` or `TRANSITIONAL` availability.

const std::optional< ::std::string> & source_name ()

(Required) Name identifying the directory being offered.

::std::optional< ::std::string> & source_name ()

(Required) Name identifying the directory being offered.

OfferDirectory & source_name (std::optional< ::std::string> value)

(Required) Name identifying the directory being offered.

const std::optional< ::fuchsia_component_decl::Ref> & target ()

(Required) Reference to the target. Must be `child`, `collection`, or

a dictionary `capability`.

::std::optional< ::fuchsia_component_decl::Ref> & target ()

(Required) Reference to the target. Must be `child`, `collection`, or

a dictionary `capability`.

OfferDirectory & target (std::optional< ::fuchsia_component_decl::Ref> value)

(Required) Reference to the target. Must be `child`, `collection`, or

a dictionary `capability`.

const std::optional< ::std::string> & target_name ()

(Required) The name by which the capability is being offered.

::std::optional< ::std::string> & target_name ()

(Required) The name by which the capability is being offered.

OfferDirectory & target_name (std::optional< ::std::string> value)

(Required) The name by which the capability is being offered.

const std::optional< ::fuchsia_io::Operations> & rights ()

(Optional) The maximum rights that can be set by a component using this

directory. IF unset, the rights are inherited from `source`.

::std::optional< ::fuchsia_io::Operations> & rights ()

(Optional) The maximum rights that can be set by a component using this

directory. IF unset, the rights are inherited from `source`.

OfferDirectory & rights (std::optional< ::fuchsia_io::Operations> value)

(Optional) The maximum rights that can be set by a component using this

directory. IF unset, the rights are inherited from `source`.

const std::optional< ::std::string> & subdir ()

(Optional) The subdirectory of this directory to offer instead of the

root. Optional.

::std::optional< ::std::string> & subdir ()

(Optional) The subdirectory of this directory to offer instead of the

root. Optional.

OfferDirectory & subdir (std::optional< ::std::string> value)

(Optional) The subdirectory of this directory to offer instead of the

root. Optional.

const std::optional< ::fuchsia_component_decl::DependencyType> & dependency_type ()

(Required) The dependency type this offer represents. A component which

receives a weak offer must support the offered capability being

unavailable at any point.

::std::optional< ::fuchsia_component_decl::DependencyType> & dependency_type ()

(Required) The dependency type this offer represents. A component which

receives a weak offer must support the offered capability being

unavailable at any point.

OfferDirectory & dependency_type (std::optional< ::fuchsia_component_decl::DependencyType> value)

(Required) The dependency type this offer represents. A component which

receives a weak offer must support the offered capability being

unavailable at any point.

const std::optional< ::fuchsia_component_decl::Availability> & availability ()

(Optional, defaults to `REQUIRED`) The availability of this capability.

If set to `required`, the target may use or offer the capability with

either `required` or `optional` availability. If set to `optional`, the

target must use or offer the capability with `optional` availability.

The `same_as_target` value causes this offer's availability to match the

availability set in the target.

::std::optional< ::fuchsia_component_decl::Availability> & availability ()

(Optional, defaults to `REQUIRED`) The availability of this capability.

If set to `required`, the target may use or offer the capability with

either `required` or `optional` availability. If set to `optional`, the

target must use or offer the capability with `optional` availability.

The `same_as_target` value causes this offer's availability to match the

availability set in the target.

OfferDirectory & availability (std::optional< ::fuchsia_component_decl::Availability> value)

(Optional, defaults to `REQUIRED`) The availability of this capability.

If set to `required`, the target may use or offer the capability with

either `required` or `optional` availability. If set to `optional`, the

target must use or offer the capability with `optional` availability.

The `same_as_target` value causes this offer's availability to match the

availability set in the target.

const std::optional< ::std::string> & source_dictionary ()

(Optional) Path in a dictionary provided by `source` which contains `source_name`.

If this field is absent, `source_name` identifies a capability directly routed

by `source`. If set, `source_name` identifies a capability nested inside this

dictionary.

::std::optional< ::std::string> & source_dictionary ()

(Optional) Path in a dictionary provided by `source` which contains `source_name`.

If this field is absent, `source_name` identifies a capability directly routed

by `source`. If set, `source_name` identifies a capability nested inside this

dictionary.

OfferDirectory & source_dictionary (std::optional< ::std::string> value)

(Optional) Path in a dictionary provided by `source` which contains `source_name`.

If this field is absent, `source_name` identifies a capability directly routed

by `source`. If set, `source_name` identifies a capability nested inside this

dictionary.

void OfferDirectory (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits