pub struct DataPipeline { /* private fields */ }Expand description
Data pipeline that processes market data events and stores them
Implementations§
Source§impl DataPipeline
impl DataPipeline
Sourcepub fn new(config: PipelineConfig, storage_manager: Arc<StorageManager>) -> Self
pub fn new(config: PipelineConfig, storage_manager: Arc<StorageManager>) -> Self
Create a new data pipeline
Sourcepub async fn start(
&mut self,
event_receiver: Receiver<MarketDataEvent>,
) -> Result<()>
pub async fn start( &mut self, event_receiver: Receiver<MarketDataEvent>, ) -> Result<()>
Start the pipeline processing
Sourcepub fn get_stats(&self) -> PipelineStats
pub fn get_stats(&self) -> PipelineStats
Get current pipeline statistics
Sourcepub fn reset_stats(&self)
pub fn reset_stats(&self)
Reset pipeline statistics
Trait Implementations§
Source§impl Debug for DataPipeline
impl Debug for DataPipeline
Auto Trait Implementations§
impl Freeze for DataPipeline
impl !RefUnwindSafe for DataPipeline
impl Send for DataPipeline
impl Sync for DataPipeline
impl Unpin for DataPipeline
impl !UnwindSafe for DataPipeline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more