Struct statemachine_rs::machine::BasicStateMachine [−][src]
The basic state machine implementation.
It holds initial_state
, current_state
, transition
function.
Trait Implementations
impl<State, Input, Transition> StateMachine<State, Input> for BasicStateMachine<State, Input, Transition> where
Transition: Fn(&State, Input) -> State,
State: Clone,
[src]
Transition: Fn(&State, Input) -> State,
State: Clone,
Auto Trait Implementations
impl<State, Input, Transition> !RefUnwindSafe for BasicStateMachine<State, Input, Transition>
[src]
impl<State, Input, Transition> Send for BasicStateMachine<State, Input, Transition> where
Input: Send,
State: Send,
Transition: Send,
[src]
Input: Send,
State: Send,
Transition: Send,
impl<State, Input, Transition> !Sync for BasicStateMachine<State, Input, Transition>
[src]
impl<State, Input, Transition> Unpin for BasicStateMachine<State, Input, Transition> where
Input: Unpin,
State: Unpin,
Transition: Unpin,
[src]
Input: Unpin,
State: Unpin,
Transition: Unpin,
impl<State, Input, Transition> UnwindSafe for BasicStateMachine<State, Input, Transition> where
Input: UnwindSafe,
State: UnwindSafe,
Transition: UnwindSafe,
[src]
Input: UnwindSafe,
State: UnwindSafe,
Transition: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,