#[non_exhaustive]pub enum Reconnected {
Live(Turn),
Ended {
ack: TurnStartResult,
last_turn: LastTurn,
},
}Expand description
What the server’s answer to one resent submission settled.
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.
Live(Turn)
The answer names a turn this session follows to its terminal. It can
differ from the carried PendingTurn::turn_id when the host took the
resend as a new submission (see that method); the resend’s input runs
in this turn and may have run once before.
Ended
The answer names the turn the resume restated as lastTurn: that turn
already ended, so this carries the restated terminal instead of a
Turn. Events a cursor resume replays for it are not delivered here.
Fields
§
ack: TurnStartResultThe server’s answer to the resend.
Auto Trait Implementations§
impl !RefUnwindSafe for Reconnected
impl !UnwindSafe for Reconnected
impl Freeze for Reconnected
impl Send for Reconnected
impl Sync for Reconnected
impl Unpin for Reconnected
impl UnsafeUnpin for Reconnected
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