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
sourceimpl Debug for DeserializeError
impl Debug for DeserializeError
sourceimpl Display for DeserializeError
impl Display for DeserializeError
sourceimpl Error for DeserializeError
impl Error for DeserializeError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for DeserializeError
impl Send for DeserializeError
impl Sync for DeserializeError
impl Unpin for DeserializeError
impl UnwindSafe for DeserializeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more