pub trait Storage:
KeyString
+ KeyList
+ Send
+ Sync {
// Required method
fn clock<'life0, 'async_trait>(
&'life0 self,
at_least: u64,
) -> Pin<Box<dyn Future<Output = TribResult<u64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Required Methods§
Sourcefn clock<'life0, 'async_trait>(
&'life0 self,
at_least: u64,
) -> Pin<Box<dyn Future<Output = TribResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clock<'life0, 'async_trait>(
&'life0 self,
at_least: u64,
) -> Pin<Box<dyn Future<Output = TribResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns an auto-incrementing clock. The returned value of each call will
be unique, no smaller than at_least, and strictly larger than the
value returned last time, unless it was u64::MAX