pub struct DefaultChildMachine { /* private fields */ }
Expand description
デフォルトの子ステートマシン実装
Implementations§
Trait Implementations§
Source§impl ChildMachine for DefaultChildMachine
impl ChildMachine for DefaultChildMachine
Source§fn send_event<'life0, 'async_trait>(
&'life0 mut self,
event: Event,
) -> Pin<Box<dyn Future<Output = Result<bool, StateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_event<'life0, 'async_trait>(
&'life0 mut self,
event: Event,
) -> Pin<Box<dyn Future<Output = Result<bool, StateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrationResult<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrationResult<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn is_in_final_state(&self) -> bool
fn is_in_final_state(&self) -> bool
最終状態にあるか確認
Source§fn is_in_state<'life0, 'life1, 'async_trait>(
&'life0 self,
state_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, StateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn is_in_state<'life0, 'life1, 'async_trait>(
&'life0 self,
state_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, StateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
特定の状態にあるか確認
Source§fn current_states(&self) -> Vec<String>
fn current_states(&self) -> Vec<String>
現在の状態IDのリストを取得
Source§fn to_json(&self) -> IntegrationResult<String>
fn to_json(&self) -> IntegrationResult<String>
子ステートマシンのJSON表現を取得
Auto Trait Implementations§
impl Freeze for DefaultChildMachine
impl !RefUnwindSafe for DefaultChildMachine
impl Send for DefaultChildMachine
impl Sync for DefaultChildMachine
impl Unpin for DefaultChildMachine
impl !UnwindSafe for DefaultChildMachine
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