init_protected_session

Function init_protected_session 

Source
pub fn init_protected_session(
    seconds: Option<u64>,
) -> Result<CaffeineSession, Box<dyn Error>>
Expand description

Inits a protected caffeine session (recommended). It writes a file so that no other session can be also active