pub struct PendingTurn { /* private fields */ }Expand description
A send_user_turn submission whose outcome its session never observed.
Implementations§
Source§impl PendingTurn
impl PendingTurn
Sourcepub fn session_id(&self) -> &str
pub fn session_id(&self) -> &str
The session the submission was sent to.
Sourcepub fn command_id(&self) -> &str
pub fn command_id(&self) -> &str
The submission’s command id; Session::resolve_reconnect resends
under it, so the server answers the same submission again.
Sourcepub fn options(&self) -> &SendUserTurnOptions
pub fn options(&self) -> &SendUserTurnOptions
The options the submission was sent with; a resend sends them unchanged.
Sourcepub fn turn_id(&self) -> Option<&str>
pub fn turn_id(&self) -> Option<&str>
The turn an answer named, or None when no answer arrived.
A resend’s answer can name another turn: a host that cannot read the
earlier admission takes the resend as a new submission, which names a
different turn when it or the earlier one joined a turn already
running. The resend’s input then runs in the turn its answer names, which
Reconnected::Live follows, and may already have run once in the
earlier turn, so it may have run twice, tools included. A
Turn::turn_id that differs from this
shows the host took the resend as new; the same id, or no earlier id,
does not rule that out.