class TimeRemaining

Defined at line 45 of file fidling/gen/sdk/fidl/fuchsia.power.battery/fuchsia.power.battery/cpp/fidl/fuchsia.power.battery/cpp/natural_types.h

The time remaining while actively charging or discharging.

Public Methods

void TimeRemaining (TimeRemaining && other)
TimeRemaining & operator= (TimeRemaining && other)
void TimeRemaining (const TimeRemaining & other)
TimeRemaining & operator= (const TimeRemaining & other)
bool operator== (const TimeRemaining & other)
bool operator!= (const TimeRemaining & other)
bool IsUnknown ()
::fuchsia_power_battery::TimeRemaining::Tag Which ()
TimeRemaining WithIndeterminate (int64_t val)
const ::fidl::internal::UnionMemberView<1, Storage_> indeterminate ()
::fidl::internal::UnionMemberView<1, Storage_> indeterminate ()
TimeRemaining & indeterminate (int64_t value)

Representation of indeterminate state with zero duration.

TimeRemaining WithBatteryLife (int64_t val)
const ::fidl::internal::UnionMemberView<2, Storage_> battery_life ()
::fidl::internal::UnionMemberView<2, Storage_> battery_life ()
TimeRemaining & battery_life (int64_t value)

Remaining battery life while discharging.

TimeRemaining WithFullCharge (int64_t val)
const ::fidl::internal::UnionMemberView<3, Storage_> full_charge ()
::fidl::internal::UnionMemberView<3, Storage_> full_charge ()
TimeRemaining & full_charge (int64_t value)

Remaining time until full while charging.

void TimeRemaining (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Enumerations

enum Tag
Name Value
kIndeterminate 1
kBatteryLife 2
kFullCharge 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 53 of file fidling/gen/sdk/fidl/fuchsia.power.battery/fuchsia.power.battery/cpp/fidl/fuchsia.power.battery/cpp/natural_types.h

Friends

class NaturalUnionCodingTraits