pub struct ModelUser { /* private fields */ }Expand description
A person played by a model.
Implementations§
Source§impl ModelUser
impl ModelUser
Sourcepub fn new(provider: Arc<dyn ModelProvider>) -> Self
pub fn new(provider: Arc<dyn ModelProvider>) -> Self
A person played by provider, which should not be the one under test.
Sourcepub const fn with_temperature(self, temperature: f32) -> Self
pub const fn with_temperature(self, temperature: f32) -> Self
Plays at temperature, for a model that takes one.
Trait Implementations§
Source§impl SimulatedUser for ModelUser
impl SimulatedUser for ModelUser
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,
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. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ModelUser
impl !UnwindSafe for ModelUser
impl Freeze for ModelUser
impl Send for ModelUser
impl Sync for ModelUser
impl Unpin for ModelUser
impl UnsafeUnpin for ModelUser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more