class LastReboot

Defined at line 3107 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/wire_types.h

Information about why a device last rebooted.

Public Methods

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

::fidl::WireTableBuilder< ::fuchsia_feedback::wire::LastReboot> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_feedback::wire::LastReboot> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_feedback::wire::LastReboot>> frame)

Return a builder that relies on explicitly allocating |fidl::ObjectView|s.

void Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_feedback::wire::LastReboot>> && frame_ptr)
void LastReboot ()

Defined at line 3109 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/wire_types.h

void LastReboot (const LastReboot & other)

Defined at line 3110 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/wire_types.h

void LastReboot (LastReboot && other)

Defined at line 3112 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/wire_types.h

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.

bool has_graceful ()
::fuchsia_feedback::wire::RebootReason & reason ()

Why a device last rebooted.

bool has_reason ()
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.

bool has_uptime ()
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.

bool has_planned ()
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.

bool has_runtime ()
::fuchsia_feedback::wire::ShutdownAction & action ()

How a device last shutdown.

bool has_action ()
LastReboot & set_graceful (bool elem)
LastReboot & clear_graceful ()
LastReboot & operator= (const LastReboot & other)

Defined at line 3111 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/wire_types.h

LastReboot & set_reason (::fuchsia_feedback::wire::RebootReason elem)
LastReboot & clear_reason ()
LastReboot & set_uptime (::fidl::ObjectView<int64_t> elem)
LastReboot & set_uptime (std::nullptr_t )
LastReboot & clear_uptime ()
LastReboot & set_planned (bool elem)
LastReboot & clear_planned ()
LastReboot & set_runtime (::fidl::ObjectView<int64_t> elem)
LastReboot & set_runtime (std::nullptr_t )
LastReboot & clear_runtime ()
LastReboot & set_action (::fuchsia_feedback::wire::ShutdownAction elem)
LastReboot & clear_action ()
void LastReboot (::fidl::AnyArena & allocator)
void LastReboot (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_feedback::wire::LastReboot>> && frame)

This constructor allows a user controlled allocation (not using a Arena).

It should only be used when performance is key.

As soon as the frame is given to the table, it must not be used directly or for another table.

LastReboot & operator= (LastReboot && other)

Defined at line 3113 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/wire_types.h

void ~LastReboot ()

Defined at line 3115 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/wire_types.h

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder