pub struct ScriptedAnswers { /* private fields */ }Expand description
Answers questions from a fixed list, then refuses. Test scaffolding.
Implementations§
Trait Implementations§
Source§impl Interlocutor for ScriptedAnswers
impl Interlocutor for ScriptedAnswers
Source§fn approve(&mut self, _request: &ApprovalRequest) -> bool
fn approve(&mut self, _request: &ApprovalRequest) -> bool
Approves, so a test can put a gate and a question in one flow without needing two channels.
Source§fn consult(&mut self, request: &ConsultRequest) -> Result<String, ConsultError>
fn consult(&mut self, request: &ConsultRequest) -> Result<String, ConsultError>
Put a question to a person and return what they said. Read more
Auto Trait Implementations§
impl Freeze for ScriptedAnswers
impl RefUnwindSafe for ScriptedAnswers
impl Send for ScriptedAnswers
impl Sync for ScriptedAnswers
impl Unpin for ScriptedAnswers
impl UnsafeUnpin for ScriptedAnswers
impl UnwindSafe for ScriptedAnswers
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