Move scylla event fetch logic to dbconn crate

This commit is contained in:
Dominik Werder
2022-06-22 10:17:00 +02:00
parent 9161b7cc1d
commit c046303c7f
7 changed files with 589 additions and 537 deletions

View File

@@ -421,9 +421,11 @@ pub trait TimeBinnableDynAggregator: Send {
fn result(&mut self) -> Box<dyn TimeBinned>;
}
pub trait TimeBinned: Framable + Send + TimeBinnableDyn {
pub trait TimeBinned: Framable + Sync + Send + TimeBinnableDyn {
fn aggregator_new(&self) -> Box<dyn TimeBinnableDynAggregator>;
fn as_time_binnable_dyn(&self) -> &dyn TimeBinnableDyn;
fn workaround_clone(&self) -> Box<dyn TimeBinned>;
fn dummy_test_i32(&self) -> i32;
}
// TODO should get I/O and tokio dependence out of this crate