Skip to main content

Mutator

Trait Mutator 

Source
pub trait Mutator: Send + Sync {
    // Required methods
    fn mutate<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        parent: &'life1 AgentConfig,
        ctx: &'life2 mut MutationCtx<'life3>,
    ) -> Pin<Box<dyn Future<Output = Result<AgentConfig, MutationError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn name(&self) -> &'static str;
}
Expand description

Takes an AgentConfig, returns a varied challenger.

Required Methods§

Source

fn mutate<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, parent: &'life1 AgentConfig, ctx: &'life2 mut MutationCtx<'life3>, ) -> Pin<Box<dyn Future<Output = Result<AgentConfig, MutationError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Produce a challenger derived from parent.

Source

fn name(&self) -> &'static str

Stable short name for logging and the picker’s weight table.

Implementors§