enum ResetReason {
NoReason = 0,
SystemFailure = 1,
}Expand description
SRST 系统重置原因
https://github.com/riscv-non-isa/riscv-sbi-doc/blob/master/src/ext-sys-reset.adoc
Variants§
Trait Implementations§
Source§impl From<ResetReason> for u32
impl From<ResetReason> for u32
Source§fn from(rr: ResetReason) -> u32
fn from(rr: ResetReason) -> u32
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResetReason
impl RefUnwindSafe for ResetReason
impl Send for ResetReason
impl Sync for ResetReason
impl Unpin for ResetReason
impl UnwindSafe for ResetReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more