Re-exports§
pub use OverwriteBehavior::AllowOverwrite;
pub use OverwriteBehavior::DisallowOverwrite;
Structs§
- Atomic
File - Create a file and write to it atomically, in a callback.
Enums§
- Error
- Represents an error raised by
AtomicFile.write
. - Overwrite
Behavior - Whether to allow overwriting if the target file exists.
Functions§
- move_
atomic - Move
src
todst
. An error will be returned ifdst
exists. - replace_
atomic - Move
src
todst
. Ifdst
exists, it will be silently overwritten.