pub struct WorkerConfig {
pub core: Option<usize>,
pub max_sessions: usize,
pub pool_slots: usize,
pub ring_entries: u32,
pub sqpoll: bool,
pub force_mio: bool,
pub backlog: i32,
}Expand description
Worker configuration knobs.
Fields§
§core: Option<usize>CPU core index to pin to (physical order from core_affinity).
max_sessions: usizeMax concurrent sessions.
pool_slots: usizeBuffer pool slots (double as io_uring fixed buffers).
ring_entries: u32io_uring queue depth.
sqpoll: boolUse IORING_SETUP_SQPOLL (zero-syscall submission).
force_mio: boolPrefer mio even when io_uring is available.
backlog: i32Accept backlog per listener.
Trait Implementations§
Source§impl Clone for WorkerConfig
impl Clone for WorkerConfig
Source§impl Debug for WorkerConfig
impl Debug for WorkerConfig
Auto Trait Implementations§
impl Freeze for WorkerConfig
impl RefUnwindSafe for WorkerConfig
impl Send for WorkerConfig
impl Sync for WorkerConfig
impl Unpin for WorkerConfig
impl UnsafeUnpin for WorkerConfig
impl UnwindSafe for WorkerConfig
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