pub struct EngineConfig {
pub pipeline_channel_cap: usize,
pub cs_capacity_bytes: usize,
pub pipeline_threads: usize,
}Expand description
Configuration for the forwarding engine.
Fields§
§pipeline_channel_cap: usizeCapacity of the inter-task channel (backpressure bound).
cs_capacity_bytes: usizeContent store byte capacity. Zero disables caching.
pipeline_threads: usizeNumber of parallel pipeline processing threads.
0(default): auto-detect from available CPU parallelism.1: single-threaded — all pipeline processing runs inline in the pipeline runner task (lowest latency, no task spawn overhead).N > 1: spawn per-packet tokio tasks so up to N pipeline passes run in parallel across cores (highest throughput with fragmented UDP traffic).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnwindSafe for EngineConfig
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