[][src]Struct finny::decl::FsmStateBuilder

pub struct FsmStateBuilder<TFsm, TContext, TState> { /* fields omitted */ }

Implementations

impl<TFsm, TContext, TState> FsmStateBuilder<TFsm, TContext, TState> where
    TFsm: FsmBackend
[src]

pub fn on_entry<'a, TAction: Fn(&mut TState, &mut EventContext<'a, TFsm, FsmQueueMock<TFsm>>)>(
    &self,
    _action: TAction
) -> &Self

Notable traits for &'_ mut R

impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

Execute this action when entering the state.

pub fn on_exit<'a, TAction: Fn(&mut TState, &mut EventContext<'a, TFsm, FsmQueueMock<TFsm>>)>(
    &self,
    _action: TAction
) -> &Self

Notable traits for &'_ mut R

impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

Execute this action when exiting the state.

pub fn on_event<TEvent>(
    &self
) -> FsmEventBuilderState<'_, TFsm, TContext, TEvent, TState>
[src]

What happens if we receive this event and we are in this state right now?

Auto Trait Implementations

impl<TFsm, TContext, TState> RefUnwindSafe for FsmStateBuilder<TFsm, TContext, TState> where
    TContext: RefUnwindSafe,
    TFsm: RefUnwindSafe,
    TState: RefUnwindSafe
[src]

impl<TFsm, TContext, TState> Send for FsmStateBuilder<TFsm, TContext, TState> where
    TContext: Send,
    TFsm: Send,
    TState: Send
[src]

impl<TFsm, TContext, TState> Sync for FsmStateBuilder<TFsm, TContext, TState> where
    TContext: Sync,
    TFsm: Sync,
    TState: Sync
[src]

impl<TFsm, TContext, TState> Unpin for FsmStateBuilder<TFsm, TContext, TState> where
    TContext: Unpin,
    TFsm: Unpin,
    TState: Unpin
[src]

impl<TFsm, TContext, TState> UnwindSafe for FsmStateBuilder<TFsm, TContext, TState> where
    TContext: UnwindSafe,
    TFsm: UnwindSafe,
    TState: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.