Struct statemachine_rs::machine::builder::BasicStateMachineBuilder [−][src]
This builder enables us to assemble StateMachine
(like crate::machine::BasicStateMachine
) more easily.
Trait Implementations
impl<State, Input, Transition> Default for BasicStateMachineBuilder<State, Input, Transition> where
Transition: Fn(&State, Input) -> State,
State: Clone,
[src]
Transition: Fn(&State, Input) -> State,
State: Clone,
impl<State, Input, Transition> StateMachineBuilder<State, Input, Transition> for BasicStateMachineBuilder<State, Input, Transition> where
Transition: Fn(&State, Input) -> State,
State: Clone,
[src]
Transition: Fn(&State, Input) -> State,
State: Clone,
type Output = BasicStateMachine<State, Input, Transition>
fn start() -> Self
[src]
fn initial_state(mut self: Self, state: State) -> Self
[src]
fn current_state(mut self: Self, state: State) -> Self
[src]
fn transition(mut self: Self, next: Transition) -> Self
[src]
fn build(self) -> Result<Self::Output, Box<dyn Error>>
[src]
Auto Trait Implementations
impl<State, Input, Transition> RefUnwindSafe for BasicStateMachineBuilder<State, Input, Transition> where
Input: RefUnwindSafe,
State: RefUnwindSafe,
Transition: RefUnwindSafe,
[src]
Input: RefUnwindSafe,
State: RefUnwindSafe,
Transition: RefUnwindSafe,
impl<State, Input, Transition> Send for BasicStateMachineBuilder<State, Input, Transition> where
Input: Send,
State: Send,
Transition: Send,
[src]
Input: Send,
State: Send,
Transition: Send,
impl<State, Input, Transition> Sync for BasicStateMachineBuilder<State, Input, Transition> where
Input: Sync,
State: Sync,
Transition: Sync,
[src]
Input: Sync,
State: Sync,
Transition: Sync,
impl<State, Input, Transition> Unpin for BasicStateMachineBuilder<State, Input, Transition> where
Input: Unpin,
State: Unpin,
Transition: Unpin,
[src]
Input: Unpin,
State: Unpin,
Transition: Unpin,
impl<State, Input, Transition> UnwindSafe for BasicStateMachineBuilder<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>,