pub struct NetworkConfig {
pub listeners: Option<usize>,
pub reuse_port: bool,
pub pin_threads: bool,
pub nodelay: bool,
pub max_outbox_bytes: usize,
pub max_connections_per_worker: usize,
}Fields§
§listeners: Option<usize>Number of worker threads (defaults to number of physical CPU cores)
reuse_port: boolEnable SO_REUSEPORT for load balancing across workers
pin_threads: boolPin worker threads to specific CPU cores for cache locality
nodelay: boolTCP_NODELAY setting for connections
max_outbox_bytes: usizeMaximum buffer size for outgoing data per connection
max_connections_per_worker: usizeMaximum number of connections per worker
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§fn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
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 NetworkConfig
impl Debug for NetworkConfig
Auto Trait Implementations§
impl Freeze for NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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