Struct bracket_state_machine::state_machine::StateMachine
source · [−]pub struct StateMachine<S, R> { /* private fields */ }Implementations
sourceimpl<S, R> StateMachine<S, R>
impl<S, R> StateMachine<S, R>
sourcepub fn new<T: State<State = S, StateResult = R> + 'static>(
system_state: S,
init_state: T
) -> Self
pub fn new<T: State<State = S, StateResult = R> + 'static>(
system_state: S,
init_state: T
) -> Self
creates a state machine with an initial state
pub fn clear_consoles(&mut self, term: &mut BTerm)
pub fn tick(&mut self, ctx: &mut BTerm) -> RunControl
Trait Implementations
Auto Trait Implementations
impl<S, R> !RefUnwindSafe for StateMachine<S, R>
impl<S, R> !Send for StateMachine<S, R>
impl<S, R> !Sync for StateMachine<S, R>
impl<S, R> Unpin for StateMachine<S, R>where
R: Unpin,
S: Unpin,
impl<S, R> !UnwindSafe for StateMachine<S, R>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more