pub enum CompactError {
MissingCatalog,
Version(Option<u64>),
Malformed,
InvalidReference {
table: &'static str,
id: usize,
},
Decode(Error),
}Expand description
Why a compact encoding could not be read back.
Variants§
MissingCatalog
The encoding omitted its catalog; supply one with
expand_with_catalog.
Version(Option<u64>)
Encoded by a different version of this format.
Malformed
Required tables are absent or not arrays.
InvalidReference
A table reference points outside the entries available at that point.
Decode(Error)
The reconstructed value is not a valid run.
Trait Implementations§
Source§impl Debug for CompactError
impl Debug for CompactError
Source§impl Display for CompactError
impl Display for CompactError
Source§impl Error for CompactError
impl Error for CompactError
1.30.0 · 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 !RefUnwindSafe for CompactError
impl !UnwindSafe for CompactError
impl Freeze for CompactError
impl Send for CompactError
impl Sync for CompactError
impl Unpin for CompactError
impl UnsafeUnpin for CompactError
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