pub enum SaveMode {
Default,
Recording,
}Expand description
The mode the EDF file is currently being edited in. It primarily handles the way the data-record count field in the file header is being treated on save. This option will not have any effect on read-only operations on an EDF file
Variants§
Default
This mode is supposed to be used for editing / creating EDF files which are not currently being recorded in a live setting. It primarily affects the way the header updates its data-record count field. The data-record count will always be updated to the
Recording
This mode is supposed to be used when the EDF file is constantly being updated due to currently
recording data in a live setting. It primarily affects the way the header updates its data-record count
field. While recording the count will remain at -1. Therefore after finishing the recording, the save mode
has to be changed to SaveMode::Default and saved again. This ensures the correct data-record count
is being saved after finishing with the recording