pub fn drain_in(
dir: &Path,
send: impl FnMut(&Queued) -> Sent,
) -> Result<Drained>Expand description
Send each waiting note in dir through send, oldest first. A kept
or refused note leaves the queue. A note that has to wait stays, and
the drain still tries every later note.
ยงErrors
The queue file cannot be rewritten.