pub fn begin_secret_activity(
kind: SecretActivityKind,
) -> Result<SecretActivityGuard, Error>Expand description
Registers the current process as running a high-level secret activity.
While registered, the agent may hold a system sleep inhibitor and will terminate the process if a suspend request still arrives.