Trait Lock
insomnia
pub trait Lock: Send { }
Inhibits a particular power management operation until the Lock is dropped.
Lock
Note that on some platforms, the lock may be terminated early under rare circumstances, i.e. if systemd_logind is restarted on Linux.
systemd_logind
impl Lock for Lock