Enum ckb_verification::SinceMetric
source · 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 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