pub struct StreamingProcessorConfig {
pub trade_channel_capacity: usize,
pub bar_channel_capacity: usize,
pub memory_threshold_bytes: usize,
pub backpressure_timeout: Duration,
pub circuit_breaker_threshold: f64,
pub circuit_breaker_timeout: Duration,
}Expand description
Configuration for production streaming
Fields§
§trade_channel_capacity: usizeChannel capacity for trade input
bar_channel_capacity: usizeChannel capacity for completed bars
memory_threshold_bytes: usizeMemory usage threshold in bytes
backpressure_timeout: DurationBackpressure timeout
circuit_breaker_threshold: f64Circuit breaker error rate threshold (0.0-1.0)
circuit_breaker_timeout: DurationCircuit breaker timeout before retry
Trait Implementations§
Source§impl Clone for StreamingProcessorConfig
impl Clone for StreamingProcessorConfig
Source§fn clone(&self) -> StreamingProcessorConfig
fn clone(&self) -> StreamingProcessorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamingProcessorConfig
impl Debug for StreamingProcessorConfig
Auto Trait Implementations§
impl Freeze for StreamingProcessorConfig
impl RefUnwindSafe for StreamingProcessorConfig
impl Send for StreamingProcessorConfig
impl Sync for StreamingProcessorConfig
impl Unpin for StreamingProcessorConfig
impl UnwindSafe for StreamingProcessorConfig
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