Trait MultiVersionQueryTransaction
Source pub trait MultiVersionQueryTransaction: Send + Sync {
// Required methods
fn version(&self) -> CommitVersion;
fn id(&self) -> TransactionId;
fn get<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 EncodedKey,
) -> Pin<Box<dyn Future<Output = Result<Option<MultiVersionValues>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn contains_key<'life0, 'life1, 'async_trait>(
&'life0 mut self,
key: &'life1 EncodedKey,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn range_batch<'life0, 'async_trait>(
&'life0 mut self,
range: EncodedKeyRange,
batch_size: u64,
) -> Pin<Box<dyn Future<Output = Result<MultiVersionBatch>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn range_rev_batch<'life0, 'async_trait>(
&'life0 mut self,
range: EncodedKeyRange,
batch_size: u64,
) -> Pin<Box<dyn Future<Output = Result<MultiVersionBatch>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_as_of_version_exclusive<'life0, 'async_trait>(
&'life0 mut self,
version: CommitVersion,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn range<'life0, 'async_trait>(
&'life0 mut self,
range: EncodedKeyRange,
) -> Pin<Box<dyn Future<Output = Result<MultiVersionBatch>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn range_rev<'life0, 'async_trait>(
&'life0 mut self,
range: EncodedKeyRange,
) -> Pin<Box<dyn Future<Output = Result<MultiVersionBatch>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn prefix<'life0, 'life1, 'async_trait>(
&'life0 mut self,
prefix: &'life1 EncodedKey,
) -> Pin<Box<dyn Future<Output = Result<MultiVersionBatch>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn prefix_rev<'life0, 'life1, 'async_trait>(
&'life0 mut self,
prefix: &'life1 EncodedKey,
) -> Pin<Box<dyn Future<Output = Result<MultiVersionBatch>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn read_as_of_version_inclusive<'life0, 'async_trait>(
&'life0 mut self,
version: CommitVersion,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}