Rust crate that provides a DBus API for interacting with logind, which is useful for doing things such as inhibiting suspension.
```rust extern crate loginddbus; use loginddbus::LoginManager;
pub fn main() -> io::Result<()> { let loginmanager = LoginManager::new()?; let suspendlock = loginmanager.connect().inhibitsuspend()?; /// Do sensitive thing with the guarantee that suspend will not work. } ```