Enum hdrsample::serialization::DeserializeError
source · pub enum DeserializeError {
IoError(ErrorKind),
InvalidCookie,
UnsupportedFeature,
UnsuitableCounterType,
InvalidParameters,
UsizeTypeTooSmall,
EncodedArrayTooLong,
}
Expand description
Errors that can happen during deserialization.
Variants§
IoError(ErrorKind)
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 Clone for DeserializeError
impl Clone for DeserializeError
source§fn clone(&self) -> DeserializeError
fn clone(&self) -> DeserializeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more