pub struct ZerocopyDataPipeline { /* private fields */ }Expand description
Zero-copy optimized data pipeline
Implementations§
Source§impl ZerocopyDataPipeline
impl ZerocopyDataPipeline
Sourcepub fn new(
config: ZerocopyPipelineConfig,
storage_manager: Arc<StorageManager>,
) -> Self
pub fn new( config: ZerocopyPipelineConfig, storage_manager: Arc<StorageManager>, ) -> Self
Create a new zero-copy optimized 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 zero-copy pipeline processing
Sourcepub fn get_stats(&self) -> ZerocopyPipelineStats
pub fn get_stats(&self) -> ZerocopyPipelineStats
Get current zero-copy pipeline statistics
Sourcepub fn reset_stats(&self)
pub fn reset_stats(&self)
Reset pipeline statistics
Trait Implementations§
Source§impl Debug for ZerocopyDataPipeline
impl Debug for ZerocopyDataPipeline
Auto Trait Implementations§
impl Freeze for ZerocopyDataPipeline
impl !RefUnwindSafe for ZerocopyDataPipeline
impl Send for ZerocopyDataPipeline
impl Sync for ZerocopyDataPipeline
impl Unpin for ZerocopyDataPipeline
impl !UnwindSafe for ZerocopyDataPipeline
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