[][src]Struct finny::FsmBackendImpl

pub struct FsmBackendImpl<F: FsmBackend> {
    pub context: <F as FsmBackend>::Context,
    pub states: <F as FsmBackend>::States,
    pub current_states: <<F as FsmBackend>::States as FsmStates>::CurrentState,
}

The struct that holds the core context and state of the given Finny FSM. Doesn't include environmental traits that can be changed at runtime.

Fields

context: <F as FsmBackend>::Contextstates: <F as FsmBackend>::Statescurrent_states: <<F as FsmBackend>::States as FsmStates>::CurrentState

Implementations

impl<F: FsmBackend> FsmBackendImpl<F>[src]

pub fn new(context: <F as FsmBackend>::Context) -> FsmResult<Self>[src]

pub fn get_context(&self) -> &<F as FsmBackend>::Context[src]

pub fn get_current_states(
    &self
) -> <<F as FsmBackend>::States as FsmStates>::CurrentState
[src]

pub fn get_state<S>(&self) -> &S

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;
where
    <F as FsmBackend>::States: AsRef<S>, 
[src]

Trait Implementations

impl<F: FsmBackend> Deref for FsmBackendImpl<F>[src]

type Target = <F as FsmBackend>::Context

The resulting type after dereferencing.

Auto Trait Implementations

impl<F> RefUnwindSafe for FsmBackendImpl<F> where
    <F as FsmBackend>::Context: RefUnwindSafe,
    <<F as FsmBackend>::States as FsmStates>::CurrentState: RefUnwindSafe,
    <F as FsmBackend>::States: RefUnwindSafe
[src]

impl<F> Send for FsmBackendImpl<F> where
    <F as FsmBackend>::Context: Send,
    <<F as FsmBackend>::States as FsmStates>::CurrentState: Send,
    <F as FsmBackend>::States: Send
[src]

impl<F> Sync for FsmBackendImpl<F> where
    <F as FsmBackend>::Context: Sync,
    <<F as FsmBackend>::States as FsmStates>::CurrentState: Sync,
    <F as FsmBackend>::States: Sync
[src]

impl<F> Unpin for FsmBackendImpl<F> where
    <F as FsmBackend>::Context: Unpin,
    <<F as FsmBackend>::States as FsmStates>::CurrentState: Unpin,
    <F as FsmBackend>::States: Unpin
[src]

impl<F> UnwindSafe for FsmBackendImpl<F> where
    <F as FsmBackend>::Context: UnwindSafe,
    <<F as FsmBackend>::States as FsmStates>::CurrentState: UnwindSafe,
    <F as FsmBackend>::States: 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.