class Role

Defined at line 1235 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.source/fuchsia.hardware.power.source/cpp/fidl/fuchsia.hardware.power.source/cpp/wire_types.h

The role a power node plays in the system.

Public Methods

void Role (const Role & )

Defined at line 1239 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.source/fuchsia.hardware.power.source/cpp/fidl/fuchsia.hardware.power.source/cpp/wire_types.h

void Role (Role && )

Defined at line 1241 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.source/fuchsia.hardware.power.source/cpp/fidl/fuchsia.hardware.power.source/cpp/wire_types.h

bool IsUnknown ()

Defined at line 1251 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.source/fuchsia.hardware.power.source/cpp/fidl/fuchsia.hardware.power.source/cpp/wire_types.h

void Role ()
bool has_invalid_tag ()
bool is_disconnected ()
Role WithDisconnected (::fidl::ObjectView< ::fuchsia_hardware_power_source::wire::Disconnected> val)

The node is disconnected or isolated from the power system.

::fuchsia_hardware_power_source::wire::Disconnected & disconnected ()

The node is disconnected or isolated from the power system.

const ::fuchsia_hardware_power_source::wire::Disconnected & disconnected ()

The node is disconnected or isolated from the power system.

bool is_source ()
Role WithSource (::fidl::ObjectView< ::fuchsia_hardware_power_source::wire::SourceRole> val)

The node provides energy to the common system bus.

::fuchsia_hardware_power_source::wire::SourceRole & source ()

The node provides energy to the common system bus.

const ::fuchsia_hardware_power_source::wire::SourceRole & source ()

The node provides energy to the common system bus.

bool is_sink ()
Role WithSink (::fidl::ObjectView< ::fuchsia_hardware_power_source::wire::SinkRole> val)

The node consumes or stores energy from the common bus.

::fuchsia_hardware_power_source::wire::SinkRole & sink ()

The node consumes or stores energy from the common bus.

const ::fuchsia_hardware_power_source::wire::SinkRole & sink ()

The node consumes or stores energy from the common bus.

bool is_auto_ ()
Role WithAuto_ (::fidl::ObjectView< ::fuchsia_hardware_power_source::wire::Auto> val)

The hardware automatically decides the role based on physical detection.

::fuchsia_hardware_power_source::wire::Auto & auto_ ()

The hardware automatically decides the role based on physical detection.

const ::fuchsia_hardware_power_source::wire::Auto & auto_ ()

The hardware automatically decides the role based on physical detection.

::fuchsia_hardware_power_source::wire::Role::Tag Which ()
Role & operator= (const Role & )

Defined at line 1240 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.source/fuchsia.hardware.power.source/cpp/fidl/fuchsia.hardware.power.source/cpp/wire_types.h

Role & operator= (Role && )

Defined at line 1242 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.source/fuchsia.hardware.power.source/cpp/fidl/fuchsia.hardware.power.source/cpp/wire_types.h

template <typename... Args>
Role WithDisconnected (::fidl::AnyArena & allocator, Args &&... args)

The node is disconnected or isolated from the power system.

Defined at line 1264 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.source/fuchsia.hardware.power.source/cpp/fidl/fuchsia.hardware.power.source/cpp/wire_types.h

template <typename... Args>
Role WithSource (::fidl::AnyArena & allocator, Args &&... args)

The node provides energy to the common system bus.

Defined at line 1282 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.source/fuchsia.hardware.power.source/cpp/fidl/fuchsia.hardware.power.source/cpp/wire_types.h

template <typename... Args>
Role WithSink (::fidl::AnyArena & allocator, Args &&... args)

The node consumes or stores energy from the common bus.

Defined at line 1300 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.source/fuchsia.hardware.power.source/cpp/fidl/fuchsia.hardware.power.source/cpp/wire_types.h

template <typename... Args>
Role WithAuto_ (::fidl::AnyArena & allocator, Args &&... args)

The hardware automatically decides the role based on physical detection.

Defined at line 1318 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.source/fuchsia.hardware.power.source/cpp/fidl/fuchsia.hardware.power.source/cpp/wire_types.h

Enumerations

enum class Tag : fidl_xunion_tag_t
Name Value Comments
kDisconnected 1

0x1

kSource 2

0x2

kSink 3

0x3

kAuto 4

0x4

_do_not_handle_this__write_a_default_case_instead ::std::numeric_limits<::fidl_union_tag_t>::max() --

Defined at line 1244 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.source/fuchsia.hardware.power.source/cpp/fidl/fuchsia.hardware.power.source/cpp/wire_types.h