class SuspendStats

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

A collection of statistics related to suspend/resume of the device.

Public Methods

void SuspendStats ()

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

void SuspendStats (SuspendStats && )

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

void SuspendStats (Storage_ storage)
void SuspendStats (const SuspendStats & other)
SuspendStats & operator= (const SuspendStats & other)
bool operator== (const SuspendStats & other)
bool operator!= (const SuspendStats & other)
bool IsEmpty ()
const std::optional<uint64_t> & success_count ()

The number of times the device has successfully suspended.

::std::optional<uint64_t> & success_count ()

The number of times the device has successfully suspended.

SuspendStats & success_count (std::optional<uint64_t> value)

The number of times the device has successfully suspended.

const std::optional<uint64_t> & fail_count ()

The number of times the device has failed to suspend.

::std::optional<uint64_t> & fail_count ()

The number of times the device has failed to suspend.

SuspendStats & fail_count (std::optional<uint64_t> value)

The number of times the device has failed to suspend.

const std::optional<int32_t> & last_failed_error ()

The error code logged after the last failed suspend attempt.

::std::optional<int32_t> & last_failed_error ()

The error code logged after the last failed suspend attempt.

SuspendStats & last_failed_error (std::optional<int32_t> value)

The error code logged after the last failed suspend attempt.

const std::optional<int64_t> & last_time_in_suspend ()

The amount of time spent in the previous suspend state.

May not be available on all platforms.

::std::optional<int64_t> & last_time_in_suspend ()

The amount of time spent in the previous suspend state.

May not be available on all platforms.

SuspendStats & last_time_in_suspend (std::optional<int64_t> value)

The amount of time spent in the previous suspend state.

May not be available on all platforms.

const std::optional<int64_t> & last_time_in_suspend_operations ()

The amount of time spent performing suspend and resume operations for

the previous suspend state.

Suspend and resume operations are those actions taken by the platform in

order to enter and exit, respectively, a suspended state.

::std::optional<int64_t> & last_time_in_suspend_operations ()

The amount of time spent performing suspend and resume operations for

the previous suspend state.

Suspend and resume operations are those actions taken by the platform in

order to enter and exit, respectively, a suspended state.

SuspendStats & last_time_in_suspend_operations (std::optional<int64_t> value)

The amount of time spent performing suspend and resume operations for

the previous suspend state.

Suspend and resume operations are those actions taken by the platform in

order to enter and exit, respectively, a suspended state.

SuspendStats & operator= (SuspendStats && )

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

const std::optional<int64_t> & total_time_in_suspend ()

The total amount of time spent in a suspended state.

::std::optional<int64_t> & total_time_in_suspend ()

The total amount of time spent in a suspended state.

SuspendStats & total_time_in_suspend (std::optional<int64_t> value)

The total amount of time spent in a suspended state.

void SuspendStats (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits