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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl PartialEq for RecordError
impl PartialEq for RecordError
source§fn eq(&self, other: &RecordError) -> bool
fn eq(&self, other: &RecordError) -> bool
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
ValueOutOfRangeResizeDisabled: 0 bytesResizeFailedUsizeTypeTooSmall: 0 bytes