Skip to main content

admit

Function admit 

Source
pub fn admit(home: &Path, items: &[Admission], now: i64) -> Result<usize>
Expand description

Adds admissions, each id once, under the file’s lock. Expired entries go and at most KEEP newest stay (keep_bounded). Returns how many were new.

§Errors

When the file cannot be written.