pub struct ServerConfig {Show 13 fields
pub max_line_len: usize,
pub max_blob_len: usize,
pub max_frame_len: usize,
pub max_inflight_requests: usize,
pub max_inflight_bytes: usize,
pub max_quiet_responses: usize,
pub max_quiet_bytes: usize,
pub write_batch_bytes: usize,
pub read_timeout: Option<Duration>,
pub write_timeout: Option<Duration>,
pub idle_timeout: Option<Duration>,
pub tcp_nodelay: bool,
pub backlog: Option<u32>,
}Expand description
Server configuration.
Fields§
§max_line_len: usize§max_blob_len: usize§max_frame_len: usize§max_inflight_requests: usize§max_inflight_bytes: usize§max_quiet_responses: usize§max_quiet_bytes: usize§write_batch_bytes: usize§read_timeout: Option<Duration>§write_timeout: Option<Duration>§idle_timeout: Option<Duration>§tcp_nodelay: bool§backlog: Option<u32>Implementations§
Source§impl ServerConfig
impl ServerConfig
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