Skip to main content

write

Function write 

Source
pub fn write(receipt: &Receipt) -> Result<()>
Expand description

Write the receipt, replacing any previous one.

Atomic, like every other state file this program writes: staged beside the target and renamed over it, so a write that dies half-way leaves the old receipt intact rather than a truncated one that parses as nothing.