#[non_exhaustive]pub enum TurnOutcome {
Completed {
params: TurnCompletedParams,
observed_start: bool,
},
Unqueued(TurnUnqueuedParams),
Ended(LastTurn),
}Expand description
The result that settles a turn wait.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Completed
The turn reached its terminal (turn/completed).
Fields
§
params: TurnCompletedParamsThe turn/completed params.
Unqueued(TurnUnqueuedParams)
The queued turn was removed before it started (turn/unqueued).
Ended(LastTurn)
The turn had already ended when the session resumed: the resume
restates it as lastTurn, and no terminal for it had been applied when
a same-command Session::send_user_turn retry claimed it. A terminal
received before the retry’s answer is applied first, unless a pending
view-gap fill holds it back, and settles the retry as
TurnOutcome::Completed instead; both carry the same terminal.
Trait Implementations§
Source§impl Clone for TurnOutcome
impl Clone for TurnOutcome
Source§impl Debug for TurnOutcome
impl Debug for TurnOutcome
Source§impl PartialEq for TurnOutcome
impl PartialEq for TurnOutcome
impl StructuralPartialEq for TurnOutcome
Auto Trait Implementations§
impl Freeze for TurnOutcome
impl RefUnwindSafe for TurnOutcome
impl Send for TurnOutcome
impl Sync for TurnOutcome
impl Unpin for TurnOutcome
impl UnsafeUnpin for TurnOutcome
impl UnwindSafe for TurnOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more