Skip to main content

ScenarioAccessor

Trait ScenarioAccessor 

Source
pub trait ScenarioAccessor: Send + Sync {
    // Required methods
    fn get_active_scenario<'life0, 'life1, 'async_trait>(
        &'life0 self,
        workspace_id: Option<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_current_state<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        workspace_id: Option<&'life1 str>,
        scenario_id: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_available_transitions<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        workspace_id: Option<&'life1 str>,
        scenario_id: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_scenario_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        workspace_id: Option<&'life1 str>,
        scenario_id: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Value>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Trait for accessing scenario subsystem

Required Methods§

Source

fn get_active_scenario<'life0, 'life1, 'async_trait>( &'life0 self, workspace_id: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get active scenario ID

Source

fn get_current_state<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, workspace_id: Option<&'life1 str>, scenario_id: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Get current state machine state

Source

fn get_available_transitions<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, workspace_id: Option<&'life1 str>, scenario_id: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Get available state transitions

Source

fn get_scenario_config<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, workspace_id: Option<&'life1 str>, scenario_id: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Get scenario configuration

Implementors§