#[repr(u32)]pub enum ZirconCrashReason {
Invalid = 0,
Unknown = 1,
NoCrash = 2,
Oom = 3,
Panic = 4,
SoftwareWatchdog = 5,
UserspaceRootJobTermination = 6,
}Expand description
TODO(https://fxbug.dev/534467534): For now, these values are copied from zircon/system/public/zircon/boot/crash-reason.h.
Variants§
Invalid = 0
0 is reserved for “Invalid”. It will never be used by a functioning crash-logger.
Unknown = 1
“Unknown” indicates that the system does not know the reason for a recent crash. The primary use of this reason is to be something which can be left in the crashlog in case the system spontaneously reboots without a chance to gracefully finalize the log, perhaps because of something like a hardware watchdog timer.
NoCrash = 2
“No Crash” indicates that the system deliberately rebooted in an orderly fashion. No crash occurred.
Oom = 3
“OOM” indicates a crash triggered by the system because of an unrecoverable out-of-memory situation.
Panic = 4
“Panic” indicates a crash triggered by the system because of an unrecoverable kernel panic situation.
SoftwareWatchdog = 5
“Software watchdog” indicates a crash triggered by a kernel level software watchdog construct. Note that this is distinct from a hardware based WDT. If the system reboots because of a hardware watchdog, it will have no chance to record the reboot reason, and the crashlog will indicate “unknown”. The HW reboot reason may be known, but only if the bootloader reports it to us.
UserspaceRootJobTermination = 6
“Userspace root job termination” indicates a crash triggered by the system because it detected the termination of the userspace root job, most likely because one of its critical processes crashed.
Trait Implementations§
Source§impl Clone for ZirconCrashReason
impl Clone for ZirconCrashReason
Source§fn clone(&self) -> ZirconCrashReason
fn clone(&self) -> ZirconCrashReason
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ZirconCrashReason
Source§impl Debug for ZirconCrashReason
impl Debug for ZirconCrashReason
impl Eq for ZirconCrashReason
Source§impl PartialEq for ZirconCrashReason
impl PartialEq for ZirconCrashReason
impl StructuralPartialEq for ZirconCrashReason
Auto Trait Implementations§
impl Freeze for ZirconCrashReason
impl RefUnwindSafe for ZirconCrashReason
impl Send for ZirconCrashReason
impl Sync for ZirconCrashReason
impl Unpin for ZirconCrashReason
impl UnsafeUnpin for ZirconCrashReason
impl UnwindSafe for ZirconCrashReason
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)