pub enum AlignError {
SampleOutsideInterval {
metric: String,
at: Timestamp,
},
CounterWentBackwards {
metric: String,
},
}Expand description
What alignment refuses.
Variants§
SampleOutsideInterval
A sample belongs to another interval. This is a bug in the caller, not a row worth dropping, so it is a typed error rather than a silent skip.
Fields
CounterWentBackwards
A counter fell between its first and last sample. A meter that rolled over or reset needs a person, not a guess.
Trait Implementations§
Source§impl Clone for AlignError
impl Clone for AlignError
Source§impl Debug for AlignError
impl Debug for AlignError
Source§impl Display for AlignError
impl Display for AlignError
Source§impl Error for AlignError
impl Error for AlignError
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 AlignError
impl PartialEq for AlignError
impl StructuralPartialEq for AlignError
Auto Trait Implementations§
impl Forget for AlignError
impl Freeze for AlignError
impl Move for AlignError
impl RefUnwindSafe for AlignError
impl Send for AlignError
impl Sync for AlignError
impl Unpin for AlignError
impl UnsafeUnpin for AlignError
impl UnwindSafe for AlignError
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