Skip to main content

write_envelope

Function write_envelope 

Source
pub fn write_envelope(inbox: &Path, env: &Envelope) -> Result<PathBuf>
Expand description

Atomically write env into inbox. Loops up to 8 times on filename collision (AlreadyExists) with a fresh name each attempt. Returns the final path on success.