Enum bluenrg::event::CrashReason [−][src]
pub enum CrashReason { Assertion, NmiFault, HardFault, }
Specific reason for the fault reported with FaultData.
Variants
Assertion
The controller reset because an assertion failed.
NmiFault
The controller reset because of an NMI fault.
HardFault
The controller reset because of a hard fault.
Trait Implementations
impl Clone for CrashReason
[src]
impl Clone for CrashReason
fn clone(&self) -> CrashReason
[src]
fn clone(&self) -> CrashReason
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for CrashReason
[src]
impl Copy for CrashReason
impl Debug for CrashReason
[src]
impl Debug for CrashReason
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for CrashReason
[src]
impl PartialEq for CrashReason
fn eq(&self, other: &CrashReason) -> bool
[src]
fn eq(&self, other: &CrashReason) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl TryFrom<u8> for CrashReason
[src]
impl TryFrom<u8> for CrashReason
type Error = BlueNRGError
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: u8) -> Result<CrashReason, Self::Error>
[src]
fn try_from(value: u8) -> Result<CrashReason, Self::Error>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
Auto Trait Implementations
impl Send for CrashReason
impl Send for CrashReason
impl Sync for CrashReason
impl Sync for CrashReason