#[repr(i32)]pub enum ErrorCode {
Show 17 variants
None = 0,
UnknownState = 1,
StreamInitFailed = 2,
StreamReadOnly = 3,
InvalidAsdfHeader = 4,
UnexpectedEof = 5,
InvalidBlockHeader = 6,
BlockMagicMismatch = 7,
YamlParserInitFailed = 8,
YamlParseFailed = 9,
OutOfMemory = 10,
System = 11,
InvalidArgument = 12,
UnknownCompression = 13,
CompressionFailed = 14,
ExtensionNotFound = 15,
OverLimit = 16,
}Expand description
The error codes asdf_error_code reports.
The discriminants are part of the C ABI and must not be reordered.
Variants§
None = 0
No error.
UnknownState = 1
Unknown parser state.
StreamInitFailed = 2
Stream initialization failed.
StreamReadOnly = 3
Attempted write to a read-only stream or file.
InvalidAsdfHeader = 4
Invalid ASDF file header.
UnexpectedEof = 5
Unexpected end of file.
InvalidBlockHeader = 6
Invalid block header.
BlockMagicMismatch = 7
Block magic bytes did not match.
YamlParserInitFailed = 8
YAML parser initialization failed.
YamlParseFailed = 9
YAML parsing failed.
OutOfMemory = 10
Out of memory.
System = 11
OS-level error; the original errno is reported separately.
InvalidArgument = 12
Invalid argument.
UnknownCompression = 13
Unknown compression type.
CompressionFailed = 14
Compression or decompression error.
ExtensionNotFound = 15
No serializer registered for an extension.
OverLimit = 16
A system limit has been reached.
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more