pub enum DeserializeError {
TooShort {
got: usize,
need: usize,
},
BadMagic,
UnsupportedVersion(u8),
ParameterMismatch {
t: u8,
d: u8,
},
InvalidPrecision(u8),
LengthMismatch {
got: usize,
expected: usize,
},
}Expand description
Error returned when deserializing a byte slice into an ExaLogLog sketch.
Variants§
TooShort
Byte slice is shorter than the minimum header length.
BadMagic
Magic prefix did not match.
UnsupportedVersion(u8)
Format version is not supported by this build.
ParameterMismatch
The encoded t or d parameter does not match what this type expects.
ExaLogLog accepts (t=2, d=20); ExaLogLogFast accepts (t=2, d=24).
InvalidPrecision(u8)
Encoded p is outside the supported range.
LengthMismatch
Length of the byte slice does not match what p implies.
Trait Implementations§
Source§impl Debug for DeserializeError
impl Debug for DeserializeError
Source§impl Display for DeserializeError
impl Display for DeserializeError
Source§impl Error for DeserializeError
impl Error for DeserializeError
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 DeserializeError
impl PartialEq for DeserializeError
Source§fn eq(&self, other: &DeserializeError) -> bool
fn eq(&self, other: &DeserializeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DeserializeError
impl StructuralPartialEq for DeserializeError
Auto Trait Implementations§
impl Freeze for DeserializeError
impl RefUnwindSafe for DeserializeError
impl Send for DeserializeError
impl Sync for DeserializeError
impl Unpin for DeserializeError
impl UnsafeUnpin for DeserializeError
impl UnwindSafe for DeserializeError
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