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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more