pub struct Signal<K>where
K: Rex,{
pub id: StateId<K>,
pub input: K::Input,
}Expand description
The Signal struct represents a routable input meant to be consumed
by a state machine processor.
The id field holds:
- The routing logic accessed by the
Kindportion of the id - a distinguishing identifier that separates state of the same kind
The input field :
- holds an event or message meant to be processed by a given state machine
- an event is defined as any output emitted by a state machine
Fields§
§id: StateId<K>§input: K::InputTrait Implementations§
impl<K> StructuralPartialEq for Signal<K>where
K: Rex,
Auto Trait Implementations§
impl<K> Freeze for Signal<K>
impl<K> RefUnwindSafe for Signal<K>
impl<K> Send for Signal<K>
impl<K> Sync for Signal<K>
impl<K> Unpin for Signal<K>
impl<K> UnwindSafe for Signal<K>
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