Enum eccodes::errors::CodesError [−][src]
pub enum CodesError {
Internal(CodesInternal),
LibcNonZero(i32, Errno),
FileHandlingInterrupted(Error),
NoMessages,
CstrUTF8(Utf8Error),
NulChar(FromBytesWithNulError),
MissingKey,
}
Expand description
Errors returned by the crate’s functions. These are the only errors that the user may face.
Variants
Internal(CodesInternal)
Returned when ecCodes library function returns an error code.
Check CodesInternal
for more details.
Tuple Fields of Internal
Returned when one of libc functions returns a non-zero error code. Check libc documentation for details of the errors. For libc reference check these websites: (1) (2)
FileHandlingInterrupted(Error)
Returned when there is an issue while handlng the file.
Check the std::fs
documentation why and when this error can occur.
Tuple Fields of FileHandlingInterrupted
0: Error
Returned when the constructor did not find any message of requested kind
CstrUTF8(Utf8Error)
Returned when the string cannot be parsed as valid UTF8 string.
Tuple Fields of CstrUTF8
0: Utf8Error
NulChar(FromBytesWithNulError)
Returned when the C-string returned by ecCodes library cannot be converted into a Rust-string.
Tuple Fields of NulChar
Returned when the requested key is not present in the message.
Similar to CodesInternal::CodesNotFound
and CodesInternal::CodesMissingKey
.
Trait Implementations
Performs the conversion.
Performs the conversion.