pub enum BlastError {
OutOfInput,
BadLiteralFlag,
BadDictSize,
DistanceTooFar,
BadCode,
OutputLimit,
}Expand description
Error codes follow blast.c so messages stay comparable with the C reader.
Variants§
OutOfInput
Ran out of input before the end code (blast() code 2).
BadLiteralFlag
First byte (coded-literal flag) is not 0 or 1 (code -1).
BadDictSize
Dictionary size is not 4, 5 or 6 (code -2).
DistanceTooFar
Distance points before the start of the output (code -3).
BadCode
Invalid Huffman code (cannot happen with the fixed tables; code -9).
OutputLimit
The output reached the caller’s limit (blast() code 1, its output
error). The output holds exactly the limit’s worth of bytes.
Implementations§
Trait Implementations§
Source§impl Clone for BlastError
impl Clone for BlastError
impl Copy for BlastError
Source§impl Debug for BlastError
impl Debug for BlastError
impl Eq for BlastError
Source§impl PartialEq for BlastError
impl PartialEq for BlastError
impl StructuralPartialEq for BlastError
Auto Trait Implementations§
impl Freeze for BlastError
impl RefUnwindSafe for BlastError
impl Send for BlastError
impl Sync for BlastError
impl Unpin for BlastError
impl UnsafeUnpin for BlastError
impl UnwindSafe for BlastError
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