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 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