From 4da8691470b869f6d4b9f027ce08937269a6929b Mon Sep 17 00:00:00 2001 From: Dominik Werder Date: Mon, 17 Feb 2025 13:33:42 +0100 Subject: [PATCH] Add fn cnt_zero_enable --- src/timebin.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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>;