risingwave_common::util::epoch

Trait EpochExt

source
pub trait EpochExt {
    // Required methods
    fn inc_epoch(&mut self);
    fn dec_epoch(&mut self);
    fn next_epoch(self) -> u64;
    fn prev_epoch(self) -> u64;
}
Expand description

There are numerous operations in our system’s unit tests that involve incrementing or decrementing the epoch. These extensions for u64 type are specifically used within the unit tests.

Required Methods§

source

fn inc_epoch(&mut self)

source

fn dec_epoch(&mut self)

source

fn next_epoch(self) -> u64

source

fn prev_epoch(self) -> u64

Implementations on Foreign Types§

source§

impl EpochExt for u64

source§

fn inc_epoch(&mut self)

source§

fn dec_epoch(&mut self)

source§

fn next_epoch(self) -> u64

source§

fn prev_epoch(self) -> u64

Implementors§