pub enum ScriptedTurn {
Items(Vec<ChatItem>),
Responder(Box<dyn Fn(&ChatAdapterRequest) -> Vec<ChatItem> + Send + Sync>),
}Expand description
One scripted turn: a fixed list of items, or a function of the request when a test needs to answer differently depending on what it was asked.
Variants§
Auto Trait Implementations§
impl !RefUnwindSafe for ScriptedTurn
impl !UnwindSafe for ScriptedTurn
impl Freeze for ScriptedTurn
impl Send for ScriptedTurn
impl Sync for ScriptedTurn
impl Unpin for ScriptedTurn
impl UnsafeUnpin for ScriptedTurn
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