Skip to main content

SimulatedUser

Trait SimulatedUser 

Source
pub trait SimulatedUser: Send + Sync {
    // Required method
    fn next<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        screen: &'life1 Screen<'life2>,
    ) -> Pin<Box<dyn Future<Output = Result<UserMove, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Someone who holds a conversation.

Required Methods§

Source

fn next<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, screen: &'life1 Screen<'life2>, ) -> Pin<Box<dyn Future<Output = Result<UserMove, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

The next move, or why none could be had.

§Errors

A message when the person could not decide: a model that failed or answered badly.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§