pub struct ServerConfig {Show 14 fields
pub max_frame_size: usize,
pub max_bulk_len: usize,
pub max_array_len: usize,
pub max_depth: usize,
pub max_inflight_requests: usize,
pub max_connections: usize,
pub read_timeout: Option<Duration>,
pub write_timeout: Option<Duration>,
pub idle_timeout: Option<Duration>,
pub push_queue_len: usize,
pub response_queue_len: usize,
pub write_batch_bytes: usize,
pub tcp_nodelay: bool,
pub backlog: Option<u32>,
}Expand description
Server configuration for limits and runtime behavior.
Fields§
§max_frame_size: usize§max_bulk_len: usize§max_array_len: usize§max_depth: usize§max_inflight_requests: usize§max_connections: usize§read_timeout: Option<Duration>§write_timeout: Option<Duration>§idle_timeout: Option<Duration>§push_queue_len: usize§response_queue_len: usize§write_batch_bytes: usize§tcp_nodelay: bool§backlog: Option<u32>Implementations§
Source§impl ServerConfig
impl ServerConfig
pub fn builder() -> ServerConfigBuilder
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
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 ServerConfig
impl Debug for ServerConfig
Auto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
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