pub enum TableDefCodecError {
TruncatedData,
InvalidMagic,
VarintOverflow,
InvalidUtf8,
}Expand description
Errors raised while decoding a persisted table definition.
Variants§
TruncatedData
The payload was shorter than required.
InvalidMagic
The leading magic was not RTBL.
VarintOverflow
A varint exceeded 64 bits.
InvalidUtf8
A length-prefixed string contained invalid UTF-8.
Trait Implementations§
Source§impl Clone for TableDefCodecError
impl Clone for TableDefCodecError
Source§fn clone(&self) -> TableDefCodecError
fn clone(&self) -> TableDefCodecError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableDefCodecError
impl Debug for TableDefCodecError
Source§impl Display for TableDefCodecError
impl Display for TableDefCodecError
impl Eq for TableDefCodecError
Source§impl Error for TableDefCodecError
impl Error for TableDefCodecError
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()
Source§impl PartialEq for TableDefCodecError
impl PartialEq for TableDefCodecError
Source§fn eq(&self, other: &TableDefCodecError) -> bool
fn eq(&self, other: &TableDefCodecError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableDefCodecError
Auto Trait Implementations§
impl Freeze for TableDefCodecError
impl RefUnwindSafe for TableDefCodecError
impl Send for TableDefCodecError
impl Sync for TableDefCodecError
impl Unpin for TableDefCodecError
impl UnsafeUnpin for TableDefCodecError
impl UnwindSafe for TableDefCodecError
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