pub enum ErrorCode {
Show 37 variants
NoError,
Generic,
PrefixUnknown,
VersionUnsupported,
FrameParameterUnsupported,
FrameParameterWindowTooLarge,
CorruptionDetected,
ChecksumWrong,
LiteralsHeaderWrong,
DictionaryCorrupted,
DictionaryWrong,
DictionaryCreationFailed,
ParameterUnsupported,
ParameterCombinationUnsupported,
ParameterOutOfBound,
TableLogTooLarge,
MaxSymbolValueTooLarge,
MaxSymbolValueTooSmall,
CannotProduceUncompressedBlock,
StabilityConditionNotRespected,
StageWrong,
InitMissing,
MemoryAllocation,
WorkSpaceTooSmall,
DstSizeTooSmall,
SrcSizeWrong,
DstBufferNull,
NoForwardProgressDestFull,
NoForwardProgressInputEmpty,
FrameIndexTooLarge,
SeekableIO,
DstBufferWrong,
SrcBufferWrong,
SequenceProducerFailed,
ExternalSequencesInvalid,
MaxCode,
Unknown(i32),
}Expand description
ZSTD error code. Upstream uses a C enum, which can carry unnamed
integer values after casts. Unknown preserves those raw values
without creating invalid Rust enum discriminants.
Variants§
NoError
Generic
PrefixUnknown
VersionUnsupported
FrameParameterUnsupported
FrameParameterWindowTooLarge
CorruptionDetected
ChecksumWrong
LiteralsHeaderWrong
DictionaryCorrupted
DictionaryWrong
DictionaryCreationFailed
ParameterUnsupported
ParameterCombinationUnsupported
ParameterOutOfBound
TableLogTooLarge
MaxSymbolValueTooLarge
MaxSymbolValueTooSmall
CannotProduceUncompressedBlock
StabilityConditionNotRespected
StageWrong
InitMissing
MemoryAllocation
WorkSpaceTooSmall
DstSizeTooSmall
SrcSizeWrong
DstBufferNull
NoForwardProgressDestFull
NoForwardProgressInputEmpty
FrameIndexTooLarge
SeekableIO
DstBufferWrong
SrcBufferWrong
SequenceProducerFailed
ExternalSequencesInvalid
MaxCode
Unknown(i32)
Implementations§
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