use crate::{DifferentiatorToIntegrator, FilterToSink, SamplerToSink, SignalToFilter}; use dos_actors::{ io::{Data, Read}, Update, }; use std::{ops::Deref, sync::Arc}; #[derive(Default)] pub struct Logging(Vec); impl Deref for Logging { type Target = Vec; fn deref(&self) -> &Self::Target { &self.0 } } impl Update for Logging {} impl Read for Logging { fn read(&mut self, data: Arc>) { self.0.push(**data); } } impl Read for Logging { fn read(&mut self, data: Arc>) { self.0.push(**data); } } impl Read for Logging { fn read(&mut self, data: Arc>) { self.0.push(**data); } } impl Read for Logging { fn read(&mut self, data: Arc>) { self.0.push(**data); } }