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§
source§impl Clone for RecordError
impl Clone for RecordError
source§fn clone(&self) -> RecordError
fn clone(&self) -> RecordError
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 moresource§impl Debug for RecordError
impl Debug for RecordError
source§impl Display for RecordError
impl Display for RecordError
source§impl Error for RecordError
impl Error for RecordError
1.30.0 · source§fn 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 · 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 RecordError
impl PartialEq for RecordError
source§fn eq(&self, other: &RecordError) -> bool
fn eq(&self, other: &RecordError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RecordError
impl Eq for RecordError
impl StructuralPartialEq for RecordError
Auto Trait Implementations§
impl Freeze for RecordError
impl RefUnwindSafe for RecordError
impl Send for RecordError
impl Sync for RecordError
impl Unpin for RecordError
impl UnwindSafe for RecordError
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