#[non_exhaustive]pub enum ResetType {
Shutdown,
ColdReboot,
WarmReboot,
PlatformSpecific(RestrictedRange<0xF0000000, 0xFFFFFFFF>),
}
Expand description
The type of reset to perform
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Shutdown
Shutdown the system
ColdReboot
Power off all hardware and perform a cold boot
WarmReboot
Reset processors and some hardware
PlatformSpecific(RestrictedRange<0xF0000000, 0xFFFFFFFF>)
Platform specific reset type
Trait Implementations§
impl Copy for ResetType
Auto Trait Implementations§
impl Freeze for ResetType
impl RefUnwindSafe for ResetType
impl Send for ResetType
impl Sync for ResetType
impl Unpin for ResetType
impl UnwindSafe for ResetType
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