class LastReboot
Defined at line 2912 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
Information about why a device last rebooted.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
const 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.
Defined at line 2928 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_graceful ()
Defined at line 2932 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool * mutable_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.
Defined at line 2946 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_graceful ()
Defined at line 2954 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
const ::fuchsia::feedback::RebootReason & reason ()
Why a device last rebooted.
Defined at line 2963 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_reason ()
Defined at line 2967 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
::fuchsia::feedback::RebootReason * mutable_reason ()
Why a device last rebooted.
Defined at line 2972 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_reason ()
Defined at line 2980 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_uptime ()
Defined at line 2994 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
int64_t * mutable_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.
Defined at line 3000 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_uptime ()
Defined at line 3008 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
const 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.
Defined at line 3023 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_planned ()
Defined at line 3027 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool * mutable_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.
Defined at line 3038 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_planned ()
Defined at line 3046 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
const 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.
Defined at line 3056 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_runtime ()
Defined at line 3060 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
int64_t * mutable_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.
Defined at line 3066 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_runtime ()
Defined at line 3074 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
const ::fuchsia::feedback::ShutdownAction & action ()
How a device last shutdown.
Defined at line 3083 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
bool has_action ()
Defined at line 3087 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
::fuchsia::feedback::ShutdownAction * mutable_action ()
How a device last shutdown.
Defined at line 3092 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void clear_action ()
Defined at line 3100 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
LastReboot & set_graceful (bool _value)
LastReboot & set_reason (::fuchsia::feedback::RebootReason _value)
LastReboot & set_uptime (int64_t _value)
LastReboot & set_planned (bool _value)
LastReboot & set_runtime (int64_t _value)
LastReboot & set_action (::fuchsia::feedback::ShutdownAction _value)
void LastReboot ()
void LastReboot (LastReboot && other)
const 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.
Defined at line 2990 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/hlcpp/fuchsia/feedback/cpp/fidl.h
void ~LastReboot ()
LastReboot & operator= (LastReboot && other)
::std::unique_ptr<LastReboot> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, LastReboot * _value, size_t _offset)
zx_status_t Clone (LastReboot * _result)