pub enum Error {
UnsupportedSignalFormat(u16),
InvalidAnnotationCode(u8),
UnsupportedAnnotationFormat(String),
InvalidPath(String),
Io(Error),
InvalidHeader(String),
}Expand description
Errors that may occur within the Rust WFDB library.
This enum represents possible error conditions that can arise when working with waveform database format files by the library.
Variants§
UnsupportedSignalFormat(u16)
Indicates that the specified signal format code is not supported.
The contained value is the unsupported format code encountered.
InvalidAnnotationCode(u8)
Indicates that an invalid annotation code was encountered.
Annotation codes must be in the range 0-49. The contained value is the invalid code that was encountered.
UnsupportedAnnotationFormat(String)
Indicates that an unsupported annotation format was requested.
The contained string describes the format that is not supported.
InvalidPath(String)
Indicates an invalid file or path was encountered.
The contained string describes the path or file that is invalid.
Io(Error)
Wraps I/O errors that occur during file operations.
InvalidHeader(String)
Indicates an invalid header format.