Enum atomic_file::OpenSettings
source · pub enum OpenSettings {
CreateIfNotExists,
ErrorIfNotExists,
}
Expand description
OpenSettings provides the two options for opening a file in the event that the file does not exist: create the file and return an error.
Variants§
CreateIfNotExists
A new file will be created if the file does not exist.
ErrorIfNotExists
An error will be returned if the file does not exist.