Module state

Module state 

Source
Expand description

Session phase finite state machine and shared session state.

SessionPhase — lifecycle phase enum with validated transitions. SessionState — shared state struct (phase, turns, resume handle).

Invalid transitions return Err(SessionError::InvalidTransition). The phase is observable via a watch::Receiver<SessionPhase> channel.

Structs§

SessionState
Shared session state, accessible from the SessionHandle.

Enums§

SessionPhase
The lifecycle phase of a Gemini Live session.