pub struct ServerConfig {
pub tls_config: Arc<ServerConfig>,
pub token_key: TokenKey,
pub use_stateless_retry: bool,
pub retry_token_lifetime: u64,
pub accept_buffer: u32,
}
Parameters governing incoming connections.
TLS configuration used for incoming connections.
Must be set to use TLS 1.3 only.
Private key used to authenticate data included in handshake tokens.
Whether to require clients to prove ownership of an address before committing resources.
Introduces an additional round-trip to the handshake to make denial of service attacks more difficult.
Microseconds after a stateless retry token was issued for which it's considered valid.
Maximum number of incoming connections to buffer.
Calling Endpoint::accept
removes a connection from the buffer, so this does not need to
be large.
Returns the "default value" for a type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static