pub struct ScriptedUser { /* private fields */ }Expand description
A person whose moves are written in advance, for tests: done once they run out.
Implementations§
Source§impl ScriptedUser
impl ScriptedUser
Sourcepub fn new(moves: impl IntoIterator<Item = UserMove>) -> Self
pub fn new(moves: impl IntoIterator<Item = UserMove>) -> Self
A person who makes moves, in order.
Trait Implementations§
Source§impl Debug for ScriptedUser
impl Debug for ScriptedUser
Source§impl Default for ScriptedUser
impl Default for ScriptedUser
Source§impl SimulatedUser for ScriptedUser
impl SimulatedUser for ScriptedUser
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 !Freeze for ScriptedUser
impl RefUnwindSafe for ScriptedUser
impl Send for ScriptedUser
impl Sync for ScriptedUser
impl Unpin for ScriptedUser
impl UnsafeUnpin for ScriptedUser
impl UnwindSafe for ScriptedUser
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