pub struct ServerOptions {Show 16 fields
pub backlog: u32,
pub tls_handshake_timeout: Duration,
pub read_timeout: Option<Duration>,
pub write_timeout: Option<Duration>,
pub idle_timeout: Option<Duration>,
pub tcp_keepalive_delay: Option<Duration>,
pub tcp_keepalive_interval: Option<Duration>,
pub tcp_keepalive_retries: Option<u32>,
pub tcp_mss: Option<u32>,
pub http1_header_read_timeout: Duration,
pub http2_max_streams: u32,
pub http2_keepalive_interval: Option<Duration>,
pub http2_keepalive_timeout: Duration,
pub grace_period: Duration,
pub max_requests_per_conn: Option<u64>,
pub proxy_protocol_mode: ProxyProtocolMode,
}Expand description
HTTP server options
Fields§
§backlog: u32§tls_handshake_timeout: Duration§read_timeout: Option<Duration>§write_timeout: Option<Duration>§idle_timeout: Option<Duration>§tcp_keepalive_delay: Option<Duration>§tcp_keepalive_interval: Option<Duration>§tcp_keepalive_retries: Option<u32>§tcp_mss: Option<u32>§http1_header_read_timeout: Duration§http2_max_streams: u32§http2_keepalive_interval: Option<Duration>§http2_keepalive_timeout: Duration§grace_period: Duration§max_requests_per_conn: Option<u64>§proxy_protocol_mode: ProxyProtocolModeTrait Implementations§
Source§impl Clone for ServerOptions
impl Clone for ServerOptions
impl Copy for ServerOptions
Source§impl Default for ServerOptions
impl Default for ServerOptions
Source§impl From<&HttpServerCli> for ServerOptions
impl From<&HttpServerCli> for ServerOptions
Source§fn from(c: &HttpServerCli) -> Self
fn from(c: &HttpServerCli) -> Self
Converts to this type from the input type.
Source§impl From<&ServerOptions> for TcpKeepalive
impl From<&ServerOptions> for TcpKeepalive
Source§fn from(v: &ServerOptions) -> Self
fn from(v: &ServerOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for ServerOptions
impl Freeze for ServerOptions
impl Move for ServerOptions
impl RefUnwindSafe for ServerOptions
impl Send for ServerOptions
impl Sync for ServerOptions
impl Unpin for ServerOptions
impl UnsafeUnpin for ServerOptions
impl UnwindSafe for ServerOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more