#[repr(transparent)]pub struct ResetType(pub u32);
Expand description
The type of system reset.
Tuple Fields§
§0: u32
Implementations§
source§impl ResetType
impl ResetType
sourcepub const COLD: ResetType = _
pub const COLD: ResetType = _
System-wide reset.
This is analogous to power cycling the device.
sourcepub const WARM: ResetType = _
pub const WARM: ResetType = _
System-wide re-initialization.
If the system doesn’t support a warm reset, this will trigger a cold reset.
sourcepub const PLATFORM_SPECIFIC: ResetType = _
pub const PLATFORM_SPECIFIC: ResetType = _
A platform-specific reset type.
Trait Implementations§
source§impl Ord for ResetType
impl Ord for ResetType
source§impl PartialOrd for ResetType
impl PartialOrd for ResetType
impl Copy for ResetType
impl Eq for ResetType
impl StructuralPartialEq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)