Struct spirit_hyper::HyperCfg [−][src]
Configuration of Hyper HTTP servers.
This are the things that are extra over the transport. It doesn’t contain any kind of ports or
SSL certificates, these are added inside the HyperServer
. This is only for configuring the
HTTP protocol itself.
Fields (Non-exhaustive)
Struct {{ .. }}
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.http1_keepalive: bool
The HTTP keepalive.
https://en.wikipedia.org/wiki/HTTP_persistent_connection.
Default is on, can be turned off.
http1_half_close: bool
When a http1 client closes its write end, keep the connection open until the reply is sent.
If set to false, if the client closes its connection, server does too.
http1_max_buf_size: Option<usize>
Maximum buffer size of HTTP1.
http2_initial_stream_window_size: Option<u32>
Initial window size.
http2_initial_connection_window_size: Option<u32>
Initial window size.
http2_adaptive_window: bool
Choose the window sizes dynamically at runtime.
If turned off (the default), uses the values configured.
http2_max_concurrent_streams: Option<u32>
Maximum number of concurrent streams.
Defaults to no limit.
http2_max_frame_size: Option<u32>
The maximum frame size of http2.
http2_keep_alive_interval: Option<Duration>
How often to send keep alive/ping frames.
Defaults to disabled.
http2_keep_alive_timeout: Duration
Close connection if no response for ping in this time.
Defaults to 20s.
http_mode: HttpMode
What protocols are enabled.
Implementations
impl HyperCfg
[src]
pub fn builder<I>(&self, incoming: I) -> Builder<I>
[src]
Constructs a Hyper server Builder
based on this configuration.
Trait Implementations
impl Clone for HyperCfg
[src]
impl Debug for HyperCfg
[src]
impl Default for HyperCfg
[src]
impl<'de> Deserialize<'de> for HyperCfg where
HyperCfg: Default,
[src]
HyperCfg: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for HyperCfg
[src]
impl Hash for HyperCfg
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for HyperCfg
[src]
fn cmp(&self, other: &HyperCfg) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<HyperCfg> for HyperCfg
[src]
impl PartialOrd<HyperCfg> for HyperCfg
[src]
fn partial_cmp(&self, other: &HyperCfg) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for HyperCfg
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructDoc for HyperCfg
[src]
fn document() -> Documentation
[src]
impl StructuralEq for HyperCfg
[src]
impl StructuralPartialEq for HyperCfg
[src]
Auto Trait Implementations
impl RefUnwindSafe for HyperCfg
impl Send for HyperCfg
impl Sync for HyperCfg
impl Unpin for HyperCfg
impl UnwindSafe for HyperCfg
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoResult<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,