pub enum CorniferError {
Show 18 variants
BufferSizeTooLarge,
ReadError {
source: Error,
},
UTF8Invalid(FromUtf8Error),
NotGZIPHeader,
InvalidCompressionMethod,
InvalidHeaderCRC {
expected: u16,
found: u16,
},
InvalidBlockType,
InvalidNonCompressedBlockHeader {
position: usize,
expected: u16,
found: u16,
},
InvalidGZIPCRC {
position: usize,
expected: u32,
found: u32,
},
InvalidGZIPIsize {
position: usize,
expected: u32,
found: u32,
},
InvalidLengthDistancePair {
lookback: u16,
size: u16,
},
InvalidNumberOfBits {
num: u8,
},
InvalidHuffmanCode {
code: u16,
position: usize,
bit: u8,
},
InvalidDynamicBlockCodeLength,
EOF,
ExpectedEOF,
IOError(Error),
RusqliteError(Error),
}Variants§
BufferSizeTooLarge
ReadError
Represents a failure to read from input.
UTF8Invalid(FromUtf8Error)
NotGZIPHeader
InvalidCompressionMethod
InvalidHeaderCRC
InvalidBlockType
InvalidNonCompressedBlockHeader
InvalidGZIPCRC
InvalidGZIPIsize
InvalidLengthDistancePair
InvalidNumberOfBits
InvalidHuffmanCode
InvalidDynamicBlockCodeLength
EOF
ExpectedEOF
IOError(Error)
Represents all other cases of std::io::Error.
RusqliteError(Error)
Represents any case of rusqlite::Error
Trait Implementations§
Source§impl Debug for CorniferError
impl Debug for CorniferError
Source§impl Display for CorniferError
impl Display for CorniferError
Source§impl Error for CorniferError
impl Error for CorniferError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for CorniferError
impl From<Error> for CorniferError
Source§impl From<Error> for CorniferError
impl From<Error> for CorniferError
Source§impl From<FromUtf8Error> for CorniferError
impl From<FromUtf8Error> for CorniferError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CorniferError
impl !RefUnwindSafe for CorniferError
impl Send for CorniferError
impl Sync for CorniferError
impl Unpin for CorniferError
impl !UnwindSafe for CorniferError
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