[][src]Struct quinn::ServerConfig

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.

Fields

tls_config: Arc<ServerConfig>

TLS configuration used for incoming connections.

Must be set to use TLS 1.3 only.

token_key: TokenKey

Private key used to authenticate data included in handshake tokens.

use_stateless_retry: bool

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.

retry_token_lifetime: u64

Microseconds after a stateless retry token was issued for which it's considered valid.

accept_buffer: u32

Maximum number of incoming connections to buffer.

Calling Endpoint::accept removes a connection from the buffer, so this does not need to be large.

Trait Implementations

impl Default for ServerConfig
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T