Function utmpx::write_line

source ·
pub fn write_line(line: &Utmpx) -> Result<Utmpx, ()>
Expand description

Write the provided structure into the utmpx database.

Replaces an entry based on getutxid, if any. Otherwise inserts a new one.