Skip to main content

read_session

Function read_session 

Source
pub fn read_session() -> Result<Option<SessionData>, SessionError>
Expand description

Read session data from the session file.

Returns Ok(None) if the file does not exist.

ยงErrors

Returns SessionError::InvalidFormat if the file contains invalid JSON, or SessionError::Io on other I/O errors.