pub struct FactoryResetStateMachine { /* private fields */ }
Implementations§
Source§impl FactoryResetStateMachine
impl FactoryResetStateMachine
pub fn new() -> FactoryResetStateMachine
pub fn is_counting_down(&self) -> bool
Sourcepub fn handle_event(&mut self, event: ResetEvent) -> FactoryResetState
pub fn handle_event(&mut self, event: ResetEvent) -> FactoryResetState
Updates the state machine’s button state on button presses and returns the new state and a boolean indicating if that new state is changed from the previous state.
Auto Trait Implementations§
impl Freeze for FactoryResetStateMachine
impl RefUnwindSafe for FactoryResetStateMachine
impl Send for FactoryResetStateMachine
impl Sync for FactoryResetStateMachine
impl Unpin for FactoryResetStateMachine
impl UnwindSafe for FactoryResetStateMachine
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