Skip to main content

list_sessions

Function list_sessions 

Source
pub fn list_sessions() -> Result<Vec<SessionInfo>, Error>
Expand description

List all sessions, sorted by most recently updated.

Reads only the metadata HEADER of each session file (see [read_session_header]) — never the message history. Used by the session resolvers (by name/id). For the capped /sessions display prefer list_recent_sessions, which reads only the N most-recent headers.