pub trait SyncMutatorActuator {
// Required methods
fn inject(
&mut self,
mutation_id: Uuid,
params: BTreeMap<AttrKey, AttrVal>,
) -> Result<(), Box<dyn Error>>;
fn reset(&mut self) -> Result<(), Box<dyn Error>>;
}
Expand description
A non-async version of MutatorActuator. This isn’t supported by the provided http server, but may be useful if the abstraction is needed in other host contexts.
Required Methods§
Sourcefn inject(
&mut self,
mutation_id: Uuid,
params: BTreeMap<AttrKey, AttrVal>,
) -> Result<(), Box<dyn Error>>
fn inject( &mut self, mutation_id: Uuid, params: BTreeMap<AttrKey, AttrVal>, ) -> Result<(), Box<dyn Error>>
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>