Type Alias utwt::UtmpParser

source ·
pub type UtmpParser<R> = UtmpParserImpl<R, utmp>;
Expand description

Parser to parse a utmp file. It can be used as an iterator.

for entry in UtmpParser::from_path("/var/run/utmp")? {
    let entry = entry?;
    // handle entry
}