pub struct TimestampOracle { /* private fields */ }Expand description
タイムスタンプ生成器(単調増加)。
Implementations§
Source§impl TimestampOracle
impl TimestampOracle
Sourcepub fn next_timestamp(&self) -> u64
pub fn next_timestamp(&self) -> u64
新しいタイムスタンプを発行する。
Sourcepub fn current_timestamp(&self) -> u64
pub fn current_timestamp(&self) -> u64
Latest issued timestamp without incrementing.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TimestampOracle
impl RefUnwindSafe for TimestampOracle
impl Send for TimestampOracle
impl Sync for TimestampOracle
impl Unpin for TimestampOracle
impl UnsafeUnpin for TimestampOracle
impl UnwindSafe for TimestampOracle
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