Skip to main content

write_unlock_session

Function write_unlock_session 

Source
pub fn write_unlock_session(
    common_dir: &Path,
    key: &[u8],
    key_source: &str,
    repo_key_id: Option<String>,
) -> Result<()>
Expand description

Persist the unlock session to disk.

ยงErrors

Returns an error if the session directory cannot be created, the session cannot be serialized, or the file cannot be written.