diff --git a/src/timebin.rs b/src/timebin.rs index 93fee48..2621a13 100644 --- a/src/timebin.rs +++ b/src/timebin.rs @@ -42,8 +42,9 @@ pub trait TimeBinnableTy: fmt::Debug + WithLen + Send + Sized { ) -> Self::TimeBinner; } +#[derive(Debug)] pub enum BinningggError { - Dyn(Box), + Dyn(Box), TypeMismatch { have: String, expect: String }, } @@ -60,7 +61,7 @@ impl fmt::Display for BinningggError { impl From for BinningggError where - E: std::error::Error + 'static, + E: std::error::Error + Send + 'static, { fn from(value: E) -> Self { Self::Dyn(Box::new(value)) @@ -136,6 +137,7 @@ pub trait BinningggBinnerDyn: fmt::Debug + Send { } pub trait BinnedEventsTimeweightTrait: fmt::Debug + Send { + fn cnt_zero_enable(&mut self); fn ingest(&mut self, evs: &EventsBoxed) -> Result<(), BinningggError>; fn input_done_range_final(&mut self) -> Result<(), BinningggError>; fn input_done_range_open(&mut self) -> Result<(), BinningggError>;