Skip to main content

read_session_from

Function read_session_from 

Source
pub fn read_session_from(
    path: &Path,
) -> Result<Option<SessionData>, SessionError>
Expand description

Read session data from a specific path. Testable variant of read_session.

ยงErrors

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