[][src]Struct quinn_proto::generic::ServerConfig

pub struct ServerConfig<S> where
    S: Session
{ pub transport: Arc<TransportConfig>, pub crypto: S::ServerConfig, pub token_key: Vec<u8>, pub use_stateless_retry: bool, pub retry_token_lifetime: u64, pub accept_buffer: u32, pub migration: bool, }

Parameters governing incoming connections

Default values should be suitable for most internet applications.

Fields

transport: Arc<TransportConfig>

Transport configuration to use for incoming connections

crypto: S::ServerConfig

TLS configuration used for incoming connections.

Must be set to use TLS 1.3 only.

token_key: Vec<u8>

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.

Accepting a connection removes it from the buffer, so this does not need to be large.

migration: bool

Whether to allow clients to migrate to new addresses

Improves behavior for clients that move between different internet connections or suffer NAT rebinding. Enabled by default.

Trait Implementations

impl<S> Default for ServerConfig<S> where
    S: Session,
    S::ServerConfig: Default
[src]

impl<S> Clone for ServerConfig<S> where
    S: Session,
    S::ServerConfig: Clone
[src]

impl<S> Debug for ServerConfig<S> where
    S: Session,
    S::ServerConfig: Debug
[src]

Auto Trait Implementations

impl<S> Unpin for ServerConfig<S> where
    <S as Session>::ServerConfig: Unpin

impl<S> Sync for ServerConfig<S> where
    <S as Session>::ServerConfig: Sync

impl<S> Send for ServerConfig<S> where
    <S as Session>::ServerConfig: Send

impl<S> UnwindSafe for ServerConfig<S> where
    <S as Session>::ServerConfig: UnwindSafe

impl<S> RefUnwindSafe for ServerConfig<S> where
    <S as Session>::ServerConfig: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,