pub struct FeederOptions {
pub channel_buffer_size: usize,
pub max_depth_levels: usize,
pub batch_size: usize,
pub cpu_affinity: i32,
pub use_zero_copy: bool,
pub max_backlog: usize,
}Expand description
Configuration options for feeder performance tuning.
These options control various aspects of feed processing performance. The settings are optimized for high-frequency trading scenarios.
Fields:
channel_buffer_size: Channel buffer size for processed data.max_depth_levels: Maximum depth levels to process for orderbooks.batch_size: Batch size for processing messages (0 = no batching).cpu_affinity: CPU core affinity for processing threads (-1 = no affinity).use_zero_copy: Whether to use zero-copy processing when possible.max_backlog: Maximum message backlog before dropping.
Note: The “prefetch options” field has been removed in this version.
Fields§
§channel_buffer_size: usizeChannel buffer size for processed data
max_depth_levels: usizeMaximum depth levels to process for orderbooks
batch_size: usizeBatch size for processing messages (0 = no batching)
cpu_affinity: i32CPU core affinity for processing threads (-1 = no affinity)
use_zero_copy: boolWhether to use zero-copy processing when possible
max_backlog: usizeMaximum message backlog before dropping
Trait Implementations§
Source§impl Clone for FeederOptions
impl Clone for FeederOptions
Source§fn clone(&self) -> FeederOptions
fn clone(&self) -> FeederOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FeederOptions
impl Debug for FeederOptions
Auto Trait Implementations§
impl Freeze for FeederOptions
impl RefUnwindSafe for FeederOptions
impl Send for FeederOptions
impl Sync for FeederOptions
impl Unpin for FeederOptions
impl UnwindSafe for FeederOptions
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