pub struct Span {
pub offset: i32,
pub length: u32,
}Expand description
One run of consecutive populated buckets in a native histogram.
Prometheus stores spans as deltas to keep histograms with a few populated buckets compact; this is the decoded form.
Fields§
§offset: i32Offset of the first bucket in the run, relative to the schema’s zero bucket.
length: u32Number of buckets in the run.
Trait Implementations§
impl Copy for Span
impl Eq for Span
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Forget for Span
impl Freeze for Span
impl Move for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
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