pub struct Turn { /* private fields */ }Expand description
A consumer’s read-only handle to one turn.
A live handle, stream, or completion future retains the session routing source needed to receive its terminal. Dropping all of them releases that retention; the session-owned handle itself does not create a cycle.
Implementations§
Source§impl Turn
impl Turn
Sourcepub fn observed_start(&self) -> bool
pub fn observed_start(&self) -> bool
Whether this client has seen the turn’s turn/started notification.
Sourcepub fn completed(&self) -> TurnOutcomeFuture
pub fn completed(&self) -> TurnOutcomeFuture
Resolves only from a routed terminal, or errors if that source fails.
Keep this Turn alive while awaiting the returned future. Dropping
the last handle discards the command locally, so an outstanding future
resolves to MuseError::Discarded.
Sourcepub fn items(&self) -> TurnStream<Item>
pub fn items(&self) -> TurnStream<Item>
Replays this turn’s folded items, then yields live item revisions. The stream keeps this turn’s session routing source alive.
Sourcepub fn deltas(&self) -> TurnStream<ItemDeltaParams>
pub fn deltas(&self) -> TurnStream<ItemDeltaParams>
Yields live deltas only; already-folded deltas are never reconstructed. The stream keeps this turn’s session routing source alive.