class LastReboot

Defined at line 1961 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/natural_types.h

Information about why a device last rebooted.

Public Methods

void LastReboot (Storage_ storage)
void LastReboot ()

Defined at line 1967 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/natural_types.h

void LastReboot (LastReboot && )

Defined at line 1968 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/natural_types.h

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

Defined at line 1969 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/natural_types.h

LastReboot & operator= (const LastReboot & other)
bool operator== (const LastReboot & other)
bool operator!= (const LastReboot & other)
bool IsEmpty ()
const std::optional<bool> & graceful ()

Whether the last reboot was graceful, i.e. the device didn't reboot in response to an error

and rebooted in a controlled manner.

This field allows clients to know whether the last reboot was graceful without having to

parse the optional |reason| field. This is useful when |reason| is not set, i.e. because

the system doesn't know more than the fact that the reboot was graceful, or when the API

evolves to support new RebootReason values and the clients hasn't been updated yet.

This field is always has a value if |reason| is provided. However, |reason| might not

always have a value this field is provided.

::std::optional<bool> & graceful ()

Whether the last reboot was graceful, i.e. the device didn't reboot in response to an error

and rebooted in a controlled manner.

This field allows clients to know whether the last reboot was graceful without having to

parse the optional |reason| field. This is useful when |reason| is not set, i.e. because

the system doesn't know more than the fact that the reboot was graceful, or when the API

evolves to support new RebootReason values and the clients hasn't been updated yet.

This field is always has a value if |reason| is provided. However, |reason| might not

always have a value this field is provided.

LastReboot & graceful (std::optional<bool> value)

Whether the last reboot was graceful, i.e. the device didn't reboot in response to an error

and rebooted in a controlled manner.

This field allows clients to know whether the last reboot was graceful without having to

parse the optional |reason| field. This is useful when |reason| is not set, i.e. because

the system doesn't know more than the fact that the reboot was graceful, or when the API

evolves to support new RebootReason values and the clients hasn't been updated yet.

This field is always has a value if |reason| is provided. However, |reason| might not

always have a value this field is provided.

const std::optional< ::fuchsia_feedback::RebootReason> & reason ()

Why a device last rebooted.

::std::optional< ::fuchsia_feedback::RebootReason> & reason ()

Why a device last rebooted.

LastReboot & reason (std::optional< ::fuchsia_feedback::RebootReason> value)

Why a device last rebooted.

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

The uptime of the device before it rebooted. This is the amount of time since boot,

including any time spent in suspend-to-idle.

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

The uptime of the device before it rebooted. This is the amount of time since boot,

including any time spent in suspend-to-idle.

LastReboot & uptime (std::optional<int64_t> value)

The uptime of the device before it rebooted. This is the amount of time since boot,

including any time spent in suspend-to-idle.

const std::optional<bool> & planned ()

Whether the last reboot was planned, i.e. the device rebooted in accordance to a schedule

applied by the system.

This field allows clients to know whether the last reboot was planned without having to

parse the |reason| field.

Planned reboots are by nature, graceful.

::std::optional<bool> & planned ()

Whether the last reboot was planned, i.e. the device rebooted in accordance to a schedule

applied by the system.

This field allows clients to know whether the last reboot was planned without having to

parse the |reason| field.

Planned reboots are by nature, graceful.

LastReboot & planned (std::optional<bool> value)

Whether the last reboot was planned, i.e. the device rebooted in accordance to a schedule

applied by the system.

This field allows clients to know whether the last reboot was planned without having to

parse the |reason| field.

Planned reboots are by nature, graceful.

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

The runtime of the device before it rebooted. This is the amount of time since boot

excluding any time spent in suspend-to-idle.

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

The runtime of the device before it rebooted. This is the amount of time since boot

excluding any time spent in suspend-to-idle.

LastReboot & runtime (std::optional<int64_t> value)

The runtime of the device before it rebooted. This is the amount of time since boot

excluding any time spent in suspend-to-idle.

const std::optional< ::fuchsia_feedback::ShutdownAction> & action ()

How a device last shutdown.

::std::optional< ::fuchsia_feedback::ShutdownAction> & action ()

How a device last shutdown.

LastReboot & action (std::optional< ::fuchsia_feedback::ShutdownAction> value)

How a device last shutdown.

void LastReboot (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits