pub trait CdcQueryTransaction:
Send
+ Sync
+ Clone
+ 'static {
// Required methods
fn get<'life0, 'async_trait>(
&'life0 self,
version: CommitVersion,
) -> Pin<Box<dyn Future<Output = Result<Option<Cdc>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn range_batch<'life0, 'async_trait>(
&'life0 self,
start: Bound<CommitVersion>,
end: Bound<CommitVersion>,
batch_size: u64,
) -> Pin<Box<dyn Future<Output = Result<CdcBatch>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn count<'life0, 'async_trait>(
&'life0 self,
version: CommitVersion,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn range<'life0, 'async_trait>(
&'life0 self,
start: Bound<CommitVersion>,
end: Bound<CommitVersion>,
) -> Pin<Box<dyn Future<Output = Result<CdcBatch>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn scan<'life0, 'async_trait>(
&'life0 self,
batch_size: u64,
) -> Pin<Box<dyn Future<Output = Result<CdcBatch>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}Required Methods§
fn get<'life0, 'async_trait>(
&'life0 self,
version: CommitVersion,
) -> Pin<Box<dyn Future<Output = Result<Option<Cdc>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn range_batch<'life0, 'async_trait>(
&'life0 self,
start: Bound<CommitVersion>,
end: Bound<CommitVersion>,
batch_size: u64,
) -> Pin<Box<dyn Future<Output = Result<CdcBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn count<'life0, 'async_trait>(
&'life0 self,
version: CommitVersion,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn range<'life0, 'async_trait>(
&'life0 self,
start: Bound<CommitVersion>,
end: Bound<CommitVersion>,
) -> Pin<Box<dyn Future<Output = Result<CdcBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn scan<'life0, 'async_trait>(
&'life0 self,
batch_size: u64,
) -> Pin<Box<dyn Future<Output = Result<CdcBatch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.