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

Blanket Implementations

Gets the TypeId of self. Read more

TODO(doc): @quake

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.