Enum hdrhistogram::errors::RecordError
source · [−]pub enum RecordError {
ValueOutOfRangeResizeDisabled,
ResizeFailedUsizeTypeTooSmall,
}
Expand description
Errors that can occur while recording a value and its associated count.
Variants
ValueOutOfRangeResizeDisabled
The value to record is not representable in this histogram and resizing is disabled. Configure a higher maximum value or enable resizing. Only possible when resizing is disabled.
ResizeFailedUsizeTypeTooSmall
Auto resizing is enabled and must be used to represent the provided value, but the histogram
cannot be resized because usize
cannot represent sufficient length. Configure this
histogram to use fewer significant digits. Only possible when resizing is enabled.
Trait Implementations
sourceimpl Clone for RecordError
impl Clone for RecordError
sourcefn clone(&self) -> RecordError
fn clone(&self) -> RecordError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RecordError
impl Debug for RecordError
sourceimpl Display for RecordError
impl Display for RecordError
sourceimpl Error for RecordError
impl Error for RecordError
1.30.0 · 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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<RecordError> for RecordError
impl PartialEq<RecordError> for RecordError
sourcefn eq(&self, other: &RecordError) -> bool
fn eq(&self, other: &RecordError) -> bool
impl Copy for RecordError
impl Eq for RecordError
impl StructuralEq for RecordError
impl StructuralPartialEq for RecordError
Auto Trait Implementations
impl RefUnwindSafe for RecordError
impl Send for RecordError
impl Sync for RecordError
impl Unpin for RecordError
impl UnwindSafe for RecordError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more