pub trait RevisionReader: Send + Sync {
// Required method
fn read_latest_revision<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, AuthzError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Reads revision information from the datastore.
Required Methods§
Sourcefn read_latest_revision<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, AuthzError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_latest_revision<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, AuthzError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the latest revision ID from the datastore. Returns “0” if no revisions exist yet (bootstrap case).