pub enum SinceMetric {
BlockNumber(u64),
EpochNumberWithFraction(EpochNumberWithFraction),
Timestamp(u64),
}
Expand description
Metric represent value
Variants§
BlockNumber(u64)
The metric_flag is 00, value
can be explained as a block number or a relative block number.
EpochNumberWithFraction(EpochNumberWithFraction)
The metric_flag is 01, value can be explained as an absolute epoch or relative epoch.
Timestamp(u64)
The metric_flag is 10, value can be explained as a block timestamp(unix time) or a relative
Auto Trait Implementations§
impl Freeze for SinceMetric
impl RefUnwindSafe for SinceMetric
impl Send for SinceMetric
impl Sync for SinceMetric
impl Unpin for SinceMetric
impl UnwindSafe for SinceMetric
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more