Expand description
§Simple crate for retrieving latest last-login records on a UNIX system
The basic usage looks like:
use lastlog::{search_uid, search_username};
fn main() {
let result1 = search_uid(1000);
let result2 = search_username("foo");
}
NOTE: this functionality is only designed to work with UNIX systems that support either utmp/wtmp or lastlog database types.
Structs§
- LastLog
- Lastlog Database Reader Implementation
- Record
- Single Database Record instance for a given user’s latest-login information
- Utmp
- UTMP/WTMP Database Reader Implementation
Enums§
- Login
Time - Simple Enum for declaring last login-time
Traits§
- Module
- Public Trait for specific linux database search implementations
Functions§
- iter_
accounts - Use an auto-selected module to iterate logins for every user account
- search_
uid - Use an auto-selected module to find the last login for a specified user-id
- search_
username - Use an auto-selected module to find the last login for a specified username