MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / mark_incomplete

Method mark_incomplete

atomic-agent/src/turn/session.rs:592–599  ·  view source on GitHub ↗

Persist the first incomplete outcome observed for this session.

(&mut self, incomplete: IncompleteSession)

Source from the content-addressed store, hash-verified

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> {

Calls 1

incompleteMethod · 0.45