pub struct SmContext<K: Rex> {
pub signal_queue: SignalQueue<K>,
pub notification_queue: NotificationQueue<K::Message>,
pub state_store: Arc<StateStore<StateId<K>, K::State>>,
pub id: StateId<K>,
}Expand description
Store the injectable dependencies provided by the StateMachineManager
to a given state machine processor.
Fields§
§signal_queue: SignalQueue<K>§notification_queue: NotificationQueue<K::Message>§state_store: Arc<StateStore<StateId<K>, K::State>>§id: StateId<K>Implementations§
Source§impl<K: Rex> SmContext<K>
impl<K: Rex> SmContext<K>
pub fn notify(&self, notification: Notification<K::Message>)
pub fn signal_self(&self, input: K::Input)
pub fn get_state(&self) -> Option<K::State>
pub fn get_tree( &self, ) -> Option<Arc<FairMutex<Node<StateId<K>, <K as Kind>::State>>>>
pub fn has_state(&self) -> bool
pub fn get_parent_id(&self) -> Option<StateId<K>>
pub fn has_parent(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for SmContext<K>where
K: Freeze,
impl<K> !RefUnwindSafe for SmContext<K>
impl<K> Send for SmContext<K>
impl<K> Sync for SmContext<K>
impl<K> Unpin for SmContext<K>where
K: Unpin,
impl<K> !UnwindSafe for SmContext<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