Enum embedded_sdmmc::Mode
source · pub enum Mode {
ReadOnly,
ReadWriteAppend,
ReadWriteTruncate,
ReadWriteCreate,
ReadWriteCreateOrTruncate,
ReadWriteCreateOrAppend,
}Expand description
The different ways we can open a file.
Variants§
ReadOnly
Open a file for reading, if it exists.
ReadWriteAppend
Open a file for appending (writing to the end of the existing file), if it exists.
ReadWriteTruncate
Open a file and remove all contents, before writing to the start of the existing file, if it exists.
ReadWriteCreate
Create a new empty file. Fail if it exists.
ReadWriteCreateOrTruncate
Create a new empty file, or truncate an existing file.
ReadWriteCreateOrAppend
Create a new empty file, or append to an existing file.