pub enum HistogramQueryError {
BucketOutOfBounds {
index: usize,
buckets: usize,
},
InvalidQuantile,
SaturatedCount,
}Expand description
Why a histogram cannot supply an exact reporting projection.
Variants§
BucketOutOfBounds
The index does not name one of the configured finite upper bounds.
Fields
InvalidQuantile
A nearest-rank fraction must satisfy 0 < numerator <= denominator.
SaturatedCount
A required count or cumulative sum is at the u64::MAX cap.
Trait Implementations§
Source§impl Clone for HistogramQueryError
impl Clone for HistogramQueryError
impl Copy for HistogramQueryError
Source§impl Debug for HistogramQueryError
impl Debug for HistogramQueryError
Source§impl Display for HistogramQueryError
impl Display for HistogramQueryError
impl Eq for HistogramQueryError
Source§impl Error for HistogramQueryError
impl Error for HistogramQueryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 HistogramQueryError
impl PartialEq for HistogramQueryError
impl StructuralPartialEq for HistogramQueryError
Auto Trait Implementations§
impl Freeze for HistogramQueryError
impl RefUnwindSafe for HistogramQueryError
impl Send for HistogramQueryError
impl Sync for HistogramQueryError
impl Unpin for HistogramQueryError
impl UnsafeUnpin for HistogramQueryError
impl UnwindSafe for HistogramQueryError
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