pub struct ReplayInterlocutor { /* private fields */ }Expand description
Serves recorded answers in order, asking nobody.
The bargain the other two replays strike, for the half that costs most to re-record: a consultation in CI is served from the recording, never asked. That is not a workaround — it is the identical arrangement already in place for the model and for the tools.
Implementations§
Source§impl ReplayInterlocutor
impl ReplayInterlocutor
pub fn new(consultations: Vec<Consultation>) -> ReplayInterlocutor
pub fn lenient(self) -> ReplayInterlocutor
Sourcepub fn skipping(self, played: usize) -> ReplayInterlocutor
pub fn skipping(self, played: usize) -> ReplayInterlocutor
Start at played, for continuing an interrupted run.
Trait Implementations§
Source§impl Interlocutor for ReplayInterlocutor
impl Interlocutor for ReplayInterlocutor
Source§fn approve(&mut self, _request: &ApprovalRequest) -> bool
fn approve(&mut self, _request: &ApprovalRequest) -> bool
A recorded run’s gates were decided when it was recorded, and a cassette does not carry them. Approving is what lets a recorded run replay at all, and it decides nothing new: the effect already happened once, under a person who said yes.
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 ReplayInterlocutor
impl RefUnwindSafe for ReplayInterlocutor
impl Send for ReplayInterlocutor
impl Sync for ReplayInterlocutor
impl Unpin for ReplayInterlocutor
impl UnsafeUnpin for ReplayInterlocutor
impl UnwindSafe for ReplayInterlocutor
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