pub struct MachineDefinition<S>where
S: MachineState,{
pub name: &'static str,
pub states: &'static [S],
pub initial: S,
pub async_mode: bool,
pub superstates: &'static [SuperstateDefinition<S>],
pub events: &'static [EventDefinition<S>],
}Fields§
§name: &'static str§states: &'static [S]§initial: S§async_mode: bool§superstates: &'static [SuperstateDefinition<S>]§events: &'static [EventDefinition<S>]Trait Implementations§
Source§impl<S> Clone for MachineDefinition<S>where
S: Clone + MachineState,
impl<S> Clone for MachineDefinition<S>where
S: Clone + MachineState,
Source§fn clone(&self) -> MachineDefinition<S>
fn clone(&self) -> MachineDefinition<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<S> Freeze for MachineDefinition<S>where
S: Freeze,
impl<S> RefUnwindSafe for MachineDefinition<S>where
S: RefUnwindSafe,
impl<S> Send for MachineDefinition<S>
impl<S> Sync for MachineDefinition<S>
impl<S> Unpin for MachineDefinition<S>where
S: Unpin,
impl<S> UnwindSafe for MachineDefinition<S>where
S: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more