This commit is contained in:
Dominik Werder
2022-12-01 22:45:44 +01:00
parent 74af61f7fb
commit 4a250227cd
7 changed files with 76 additions and 21 deletions

View File

@@ -116,3 +116,39 @@ impl Collectable for Box<dyn Events> {
EventsCollector::new(coll)
}
}
#[derive(Debug)]
pub struct TimeBinnedCollector {}
impl Collector for TimeBinnedCollector {
type Input = Box<dyn crate::TimeBinned>;
type Output = Box<dyn Collected>;
fn len(&self) -> usize {
todo!()
}
fn ingest(&mut self, _item: &mut Self::Input) {
todo!()
}
fn set_range_complete(&mut self) {
todo!()
}
fn set_timed_out(&mut self) {
todo!()
}
fn result(&mut self) -> Result<Self::Output, Error> {
todo!()
}
}
impl Collectable for Box<dyn crate::TimeBinned> {
type Collector = TimeBinnedCollector;
fn new_collector(&self) -> Self::Collector {
todo!()
}
}