pub enum DeserializeError {
IoError(Error),
InvalidCookie,
UnsupportedFeature,
UnsuitableCounterType,
InvalidParameters,
UsizeTypeTooSmall,
EncodedArrayTooLong,
}
Expand description
Errors that can happen during deserialization.
Variants§
IoError(Error)
An i/o operation failed.
InvalidCookie
The cookie (first 4 bytes) did not match that for any supported format.
UnsupportedFeature
The histogram uses features that this implementation doesn’t support (yet), so it cannot be deserialized correctly.
UnsuitableCounterType
A count exceeded what can be represented in the chosen counter type.
InvalidParameters
The histogram instance could not be created because the serialized parameters were invalid (e.g. lowest value, highest value, etc.)
UsizeTypeTooSmall
The current system’s pointer width cannot represent the encoded histogram.
EncodedArrayTooLong
The encoded array is longer than it should be for the histogram’s value range.
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
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 DeserializeError
impl !RefUnwindSafe for DeserializeError
impl Send for DeserializeError
impl Sync for DeserializeError
impl Unpin 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