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§
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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_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
Sourcefn 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,
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".