[−][src]Struct finny::FsmFrontend
The frontend of a state machine which also includes environmental services like queues and inspection. The usual way to use the FSM.
Fields
queue: Q
backend: FsmBackendImpl<F>
Implementations
impl<F, Q> FsmFrontend<F, Q> where
F: FsmBackend,
Q: FsmEventQueue<F>,
[src]
F: FsmBackend,
Q: FsmEventQueue<F>,
pub fn start(&mut self) -> FsmResult<()>
[src]
Start the FSM, initiates the transition to the initial state.
pub fn dispatch<E>(&mut self, event: E) -> FsmResult<()> where
E: Into<<F as FsmBackend>::Events>,
[src]
E: Into<<F as FsmBackend>::Events>,
Dispatch this event and run it to completition.
pub fn dispatch_single_event(
&mut self,
event: &FsmEvent<<F as FsmBackend>::Events>
) -> FsmResult<()>
[src]
&mut self,
event: &FsmEvent<<F as FsmBackend>::Events>
) -> FsmResult<()>
Dispatch only this event, do not run it to completition.
Methods from Deref<Target = FsmBackendImpl<F>>
pub fn get_context(&self) -> &<F as FsmBackend>::Context
[src]
pub fn get_current_states(
&self
) -> <<F as FsmBackend>::States as FsmStates>::CurrentState
[src]
&self
) -> <<F as FsmBackend>::States as FsmStates>::CurrentState
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]
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;
<F as FsmBackend>::States: AsRef<S>,
Trait Implementations
impl<F, Q> Deref for FsmFrontend<F, Q> where
F: FsmBackend,
Q: FsmEventQueue<F>,
[src]
F: FsmBackend,
Q: FsmEventQueue<F>,
type Target = FsmBackendImpl<F>
The resulting type after dereferencing.
pub fn deref(&self) -> &Self::Target
[src]
Auto Trait Implementations
impl<F, Q> RefUnwindSafe for FsmFrontend<F, Q> where
Q: RefUnwindSafe,
<F as FsmBackend>::Context: RefUnwindSafe,
<<F as FsmBackend>::States as FsmStates>::CurrentState: RefUnwindSafe,
<F as FsmBackend>::States: RefUnwindSafe,
[src]
Q: RefUnwindSafe,
<F as FsmBackend>::Context: RefUnwindSafe,
<<F as FsmBackend>::States as FsmStates>::CurrentState: RefUnwindSafe,
<F as FsmBackend>::States: RefUnwindSafe,
impl<F, Q> Send for FsmFrontend<F, Q> where
Q: Send,
<F as FsmBackend>::Context: Send,
<<F as FsmBackend>::States as FsmStates>::CurrentState: Send,
<F as FsmBackend>::States: Send,
[src]
Q: Send,
<F as FsmBackend>::Context: Send,
<<F as FsmBackend>::States as FsmStates>::CurrentState: Send,
<F as FsmBackend>::States: Send,
impl<F, Q> Sync for FsmFrontend<F, Q> where
Q: Sync,
<F as FsmBackend>::Context: Sync,
<<F as FsmBackend>::States as FsmStates>::CurrentState: Sync,
<F as FsmBackend>::States: Sync,
[src]
Q: Sync,
<F as FsmBackend>::Context: Sync,
<<F as FsmBackend>::States as FsmStates>::CurrentState: Sync,
<F as FsmBackend>::States: Sync,
impl<F, Q> Unpin for FsmFrontend<F, Q> where
Q: Unpin,
<F as FsmBackend>::Context: Unpin,
<<F as FsmBackend>::States as FsmStates>::CurrentState: Unpin,
<F as FsmBackend>::States: Unpin,
[src]
Q: Unpin,
<F as FsmBackend>::Context: Unpin,
<<F as FsmBackend>::States as FsmStates>::CurrentState: Unpin,
<F as FsmBackend>::States: Unpin,
impl<F, Q> UnwindSafe for FsmFrontend<F, Q> where
Q: UnwindSafe,
<F as FsmBackend>::Context: UnwindSafe,
<<F as FsmBackend>::States as FsmStates>::CurrentState: UnwindSafe,
<F as FsmBackend>::States: UnwindSafe,
[src]
Q: UnwindSafe,
<F as FsmBackend>::Context: UnwindSafe,
<<F as FsmBackend>::States as FsmStates>::CurrentState: UnwindSafe,
<F as FsmBackend>::States: 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,
pub fn borrow(&self) -> &Tⓘ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]
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;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ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]
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;
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>,