Persist the first incomplete outcome observed for this session.
(&mut self, incomplete: IncompleteSession)
| 590 | |
| 591 | /// Persist the first incomplete outcome observed for this session. |
| 592 | pub fn mark_incomplete(&mut self, incomplete: IncompleteSession) -> &IncompleteSession { |
| 593 | if !matches!(&self.status, SessionStatus::Incomplete(_)) { |
| 594 | self.status = SessionStatus::Incomplete(incomplete); |
| 595 | } |
| 596 | self.status |
| 597 | .incomplete() |
| 598 | .expect("session was just marked incomplete") |
| 599 | } |
| 600 | |
| 601 | /// Return the durable refusal details, when this session is incomplete. |
| 602 | pub fn incomplete(&self) -> Option<&IncompleteSession> { |