pub trait MutatorActuator {
// Required methods
fn inject<'life0, 'async_trait>(
&'life0 mut self,
mutation_id: Uuid,
params: BTreeMap<AttrKey, AttrVal>,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn reset<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
“Infallible” operational view on a mutator actuator.
Required Methods§
Sourcefn inject<'life0, 'async_trait>(
&'life0 mut self,
mutation_id: Uuid,
params: BTreeMap<AttrKey, AttrVal>,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn inject<'life0, 'async_trait>(
&'life0 mut self,
mutation_id: Uuid,
params: BTreeMap<AttrKey, AttrVal>,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Input params attribute iterator should not contain duplicate keys. It is effectively a map of key-value pairs.
The keys are expected to be of either format:
<param-key>
- OR
mutator.params.<param-key>