Skip to main content

load

Function load 

Source
pub(crate) fn load(
    path: &Path,
    binding: &KeyBinding,
    now_secs: u64,
) -> Result<Option<Vec<Record>>, Refused>
Expand description

Read the file: Ok(None) when there is none, the sessions when it can be trusted. On any refusal the file is deleted, so a later start does not meet it again.