Skip to main content

reopen

Function reopen 

Source
pub fn reopen(talk: &mut Talk, store: &Talks) -> Result<()>
Expand description

Reopen a closed conversation. Idempotent for the same reason close is: reopening an already-open conversation is not an error, since the operator’s intent - “I want to keep talking about this” - is already satisfied.

Written symmetrically with close: re-reads the record under Talks::guard rather than trusting the caller’s copy of talk, writes that fresh copy back rather than the one passed in, and errors rather than falling back to the stale copy if the re-read fails, for the same reasons close’s doc gives.