pub enum CrousError {
Show 19 variants
Io(Error),
InvalidMagic,
UnsupportedVersion(u8),
InvalidWireType(u8),
VarintOverflow,
UnexpectedEof(usize),
ChecksumMismatch {
expected: u64,
actual: u64,
},
InvalidUtf8(usize),
NestingTooDeep(usize, usize),
BlockTooLarge(usize, usize),
TooManyItems(usize, usize),
UnknownCompression(u8),
DecompressionError(String),
InvalidBlockType(u8),
ParseError {
line: usize,
col: usize,
message: String,
},
SchemaMismatch(String),
MemoryLimitExceeded(usize, usize),
InvalidBase64(String),
InvalidData(String),
}Expand description
All errors that can occur during Crous operations.
Variants§
Io(Error)
InvalidMagic
UnsupportedVersion(u8)
InvalidWireType(u8)
VarintOverflow
UnexpectedEof(usize)
ChecksumMismatch
InvalidUtf8(usize)
NestingTooDeep(usize, usize)
BlockTooLarge(usize, usize)
TooManyItems(usize, usize)
UnknownCompression(u8)
DecompressionError(String)
InvalidBlockType(u8)
ParseError
SchemaMismatch(String)
MemoryLimitExceeded(usize, usize)
InvalidBase64(String)
InvalidData(String)
Trait Implementations§
Source§impl Debug for CrousError
impl Debug for CrousError
Source§impl Display for CrousError
impl Display for CrousError
Source§impl Error for CrousError
impl Error for CrousError
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()
Auto Trait Implementations§
impl Freeze for CrousError
impl !RefUnwindSafe for CrousError
impl Send for CrousError
impl Sync for CrousError
impl Unpin for CrousError
impl UnsafeUnpin for CrousError
impl !UnwindSafe for CrousError
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