pub trait SessionReader:
Send
+ Sync
+ 'static {
// Required methods
fn subscribe(&self) -> Receiver<SessionEvent>;
fn phase(&self) -> SessionPhase;
fn session_id(&self) -> &str;
}Expand description
Read-side of a session — subscribe to events and observe phase.
Required Methods§
Sourcefn subscribe(&self) -> Receiver<SessionEvent>
fn subscribe(&self) -> Receiver<SessionEvent>
Subscribe to the session event broadcast stream.
Sourcefn phase(&self) -> SessionPhase
fn phase(&self) -> SessionPhase
Returns the current session phase.
Sourcefn session_id(&self) -> &str
fn session_id(&self) -> &str
Returns the unique session ID.