Skip to main content

deliver_answer

Function deliver_answer 

Source
pub fn deliver_answer(
    store: &Questions,
    q: &mut Question,
    answer: &str,
    out: &mut impl Write,
) -> Result<()>
Expand description

Print an answer (with any unread says before it) to out, flush, and only then record the hand-over. A failed write marks nothing delivered.