Enum rustfsm_trait::MachineUpdate[][src]

pub enum MachineUpdate<Machine> where
    Machine: StateMachine
{ InvalidTransition, Ok { commands: Vec<Machine::Command>, }, }

Variants

InvalidTransition
Ok

Fields of Ok

commands: Vec<Machine::Command>

Implementations

impl<M> MachineUpdate<M> where
    M: StateMachine
[src]

pub fn unwrap(self) -> Vec<M::Command>[src]

Unwraps the machine update, panicking if the transition was invalid.

Auto Trait Implementations

impl<Machine> RefUnwindSafe for MachineUpdate<Machine> where
    <Machine as StateMachine>::Command: RefUnwindSafe

impl<Machine> Send for MachineUpdate<Machine> where
    <Machine as StateMachine>::Command: Send

impl<Machine> Sync for MachineUpdate<Machine> where
    <Machine as StateMachine>::Command: Sync

impl<Machine> Unpin for MachineUpdate<Machine> where
    <Machine as StateMachine>::Command: Unpin

impl<Machine> UnwindSafe for MachineUpdate<Machine> where
    <Machine as StateMachine>::Command: UnwindSafe

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.