SessionReader

Trait SessionReader 

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§

fn subscribe(&self) -> Receiver<SessionEvent>

Subscribe to the session event broadcast stream.

fn phase(&self) -> SessionPhase

Returns the current session phase.

fn session_id(&self) -> &str

Returns the unique session ID.

Implementors§